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 this way first but only missed the
y = x
line and it was not passing. Silly mistake.Yes, once upon a time I accidentally created a new language version and then nuked it soon after. Completion count does not reset when language versions are nuked.
This comment is hidden because it contains spoiler information about the solution
It was hard for everyone I guess. At first, I could only do it in 50 lines, which wasn't acceptable.
But I decided to think one thing, "The solution must be something so simple that I cannot figure it out".
+1. No idea how to even start!
After finally trying for a whole afternoon, I submitted just to see similar/same code submitted by most. Unfortunately cannot cut it less than 31 lines :(
:D Either way, it feel like a huge relief that I could figure it out.