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.
Finally! I'm surprised by how few people used logarithms. However, I'm a little confused as to how this would work where the logarithm returns a whole number. Wouldn't that lead the program to over-estimating?
For instance, if h = 2, window = 1, and bounce = 0.5, wouldn't log(window / h) / log(bounce) return 1, which would then be multiplied by 2 and added to 1, resulting in 3? If I recall, the answer desired by the prompt here is 1, so I'm really curious what I'm missing here, since I was on a similar path as you, but added logic to avoid this scenario.
The same!, but I use reverse=True, select -1
Если честно, я совсем ничего не понял. Ну, да ладно может со временем разберусь.
This comment is hidden because it contains spoiler information about the solution
Didn't get what this &-operator was doing. Can someone explain this to me?
upd Got it
Thanks ;-)
Beautiful :O!!
Cool kata, it leaves a lot of room for different solutions
I'm having the same issue
I got into programming a 3 weeks ago, and this kata was great OOP practice! This site helped me progress really fast