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.
Rejected by someone
Yes, I am. Not gonna give you the answer, you should just follow properly the requirements of the kata.
The kata is ok, you should read carefully the instructions.
What's the issue? Can you give clearly the input and the output? Fixed tests are the same in Python, you're probably missing something.
Oh I see, it's on the right side of the seven segment display, my bad, now I got it, thanks.
Consider a seven segment display. A one is displayed with the two right LEDs lit up. Rotating that would mean the two right LEDs are lit up, which is not the same.
I did it, still I think there's an error in the description test cases, shouldn't one (something like I) when rotated 180 degrees be exactly the same? So "1" should be equal True and not False.
There is only one way of rotating that 180 degrees.
How can it look exactly the same? How should be rotated by 180 degrees? One could tell only if it is still a valid digit as far as I understood.
Restored image.
Not a problem in JS ( which seems to be commenter's language [ now? ] ). @bkaes wrote the Haskell version - somehow I doubt that version has this problem.
If it's still a problem in any other languages, please specify the language.
Closing.
It loops through the string exactly 2 times. Yes, it can be done in one loop, without splitting the string into arrays.
Regardless, time complexity is O(n), and the code is nice and readable.
There are no rules that require players to make only the best moves
It's difficult to answer on this question without spoilering solution.
Actually, you may check the tip
Mistake in test case description, has to be
Fixed, thank you
Loading more items...