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.
Thanks! I finally ended up solving it my code was more inefficient then I thought.
@aol574: d20master was using C# and you javascript (note the difference in capitalization of both methods's name).
Math.sqrt(n) worked for me!
soumya_kathua: read my reply to your post in this kata: https://www.codewars.com/kata/51ba717bb08c1cd60f00002f/discuss#5fac3d4097ead20032bc4711 it seems you haven't read it.
No. Resolving.
It's not enough. You need to pass 100% of cases to complete the kata.
So, are you mistaking, or is it working code? Hint: it's not ;)
Your code fails following test case:
Test.assert_equals(next_bigger(890),908)
. For input890
it returns980
, but correct answer is908
. Debug through it locally in your IDE and see how your approach solves the problem incorrectly.PLease Don't say it's indent issue and marked as resolved . Please be helpful here. IT's working code. Thanks
This comment is hidden because it contains spoiler information about the solution
Yes, this issue is quite often observed by users who managed to come up with inefficient solution.
Try running following test case locally:
Assert.AreEqual(9000000001, Kata.NextBiggerNumber(1900000000));
Working in C#. Code on my desktop runs in 74ms and timesout in codewars. Is this an issue that others are noticing?
What step?
It is allowed, just had to add another step.
This issue is i've run my code in visual studio community and it works. However, it will not test in Codewars. My assumption is Math.Sqrt() will not work, because of seen post in others about the same issue.
It doesn't say in description that you can't, so you probably can.
This comment is hidden because it contains spoiler information about the solution