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.
Hi! To develop logic for solving problems effectively, it's important to have a good understanding of the functions of the language you're working with and adhere to its philosophy. Additionally, keeping a notebook and pencil handy is beneficial for understanding and sketching out the algorithm. This approach allows for a clearer visualization of the problem and its potential solutions.
Your resolution is very good, I've been trying to solve it for a long time, but I haven't come up with any ideas, what is your process for developing the logic for your problems?
It is the same solutions on me...
To keep it one-lined, I could have written a recursive function to divide by 2 and count the remainders, but was it really necessary ;)?
If that so the author should've written tests for that.
it's fast! however, according to the description: "...you have to do it without string operation..." lol