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.
You're using two for loops that go all the way to n.
You simply have to either get rid of one of the for loops or at least minimize which tests you look at.
I had the same issue and I chose to get rid of one of the for loops, although that meant I had to deal with floating point errors.
This comment is hidden because it contains spoiler information about the solution
Further adding to the confusion, when I just attempted this a moment ago it asked me for the "highest sequence of TWO NUMBERS in a row", and I failed the test because there's still a unit test in there checking for 5 consecutive numbers. wtf?!
Yo L4V. The test expects a number, not a string. Make sure that you return a number. Tell me if that works. Swoosh.
Hi, I'm passing 9/10 tests. I also don't know how to see the spec I'm failing. In Js. Thank you.
Great, you got it! Made minor alteration to my code and it now passes.
I figured it out. It's fairly simple, it's asking for the highest sequence of five numbers within the code (without rearranging it).
Good luck
Look at my suggestion above. they're asking for the highest sequence of five numbers, not for you to re-arrange it and find the highest numbers within the argument.
I figured it out, here's what I wrote:
For everybody who gets 99999 instead of 99890, here is some help:
THE INSTRUCTIONS ARE VAGUE. Here is an example, let's say they gave the number: 9834775899890938471234
At first, I initially understood it as re-arranging all the numbers and finding the highest numbers within that.
In this case it would be "99999".
But it's actually asking for the highest SEQUENCE of 5-numbers in a row.
In this case, it would be "99890".
That is the difference, and I got it right. I hope this helps.
For everybody who gets 99999 instead of 99890, here is some help:
THE INSTRUCTIONS ARE VAGUE. Here is an example, let's say they gave the number: 9834775899890938471234
At first, I initially understood it as re-arranging all the numbers and finding the highest numbers within that.
In this case it would be "99999".
But it's actually asking for the highest SEQUENCE of 5-numbers in a row.
In this case, it would be "99890".
That is the difference, and I got it right. I hope this helps.
Same issue... Did you guys figure it out?
I understand your question and I have the same problem.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Cool Kata. I had a lot of fun with this one.
#CuteKataCuteKata
Loading more items...