Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thank you very much!!, in Javascript I had no problems (you know ...), but your comment was useful to do it in Java
I have the same problem and I know what's going on now.
"a1 or a2 is empty" means two aspects,a1==null or a1 has noting.
You have to return -1 in both of the two cases.
This comment is hidden because it contains spoiler information about the solution
I have the same problem please look into it
I have this problem too, printing the output shows the correct answer but I still get '0' as shown above.
This comment is hidden because it contains spoiler information about the solution
Print the input and your output.
I have this problem too.How to solve it?
This comment is hidden because it contains spoiler information about the solution
Yes you can post here. Mark it with the spoiler tag.
Did you print the input and your output? If so could you give them? All I can say it is that there is no answer with a
0
in the fixed tests.There is only one fixed test in "Run" but six fixed tests in "Submit" plus 100 random tests. Did you think of corner cases?
Please which language? BTW the fixed tests are often much longer in "Submit" than in "Run".