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.
I tried to clear up any confusion in the description, it was really hard for me to figure out what I was supposed to do.
ideally there should be some explanation in the initial code, yes. you can open a suggestion to request that.
because it's better to use enumerated types in languages that support them. the reasons
enum
s are rarely used on Codewars are 1) some translators are not aware of what is most idiomatic in their language of choice and 2) the first languages available on Codewars (JavaScript, Python, Ruby) do not have language support forenum
s¹, so they used string constants instead, and translators to other langauges replicated this interface most of the time.¹: Python now has an
enum
module, but it's a library and not a language constructYou're totally right! Unfortunately I can't apply your fix. When I try to approve it, I get an error message saying "Failed to approve: cannot approve/reject own translation". Hopefully admins will notice and fix this.
i guess because the output will always be bigger than the input. returning a
u64
allows the function to potentially handle very large inputsDone.
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.
Loading more items...