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.
This comment is hidden because it contains spoiler information about the solution
It is marked as best practice cause we are all noobs here. BTW if you say something is terrible and start complaining about the system, why don't you show the best possible answer intead? We learn a lot in this section of the page and it would be great.
I know this is old, but given the fact that so many of us are new-ish to coding on the site, it makes sense that mob mentality kicks in after a while. After all, if so many people marked it best practice, it MUST be the best, right? Thankfully, we have a lot of more seasoned community members willing to tell us when and why we're wrong.
what ,this is the best practise?
It looks cute tho ( ´ ▽ ` )ノ
I did the same thing but I still agree with you. Recounting is silly.
This is a bruteforce, inefficient solution that one should be ashamed to use in production code.
The only right way to do it written in a concise, pythonic style.
Too bad it can't be marked as both clever and best practice.
Also, makes me wish there was a "stupid" button for solutions that count occurences of every number in the sequence.
Very educational.
Thank you for posting this.