Version Checker

Limits: 1s, 256 MB

Java Development Kit (JDK) installer for Mac OS X has a bug:

This is a companion discussion topic for the original entry at

Wrong answer at test case 7. What’s the problem in my code?

if the version numbers are same ,how they can be a different size? i’m not getting it .I am getting wa at test 8

Will some_one ans of the question?

01 & 1 are same but 01 is the answer because of If the both version numbers are the same print the string that is longest in terms of string length.

1 Like