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.
So there's clearly room for more wine... uh, paper :D
i wonder why this very simple solution doesn't get nearly as much "best practice" than the other one above there >^.^<
Is the glass half empty or half full ?
Be optimistic, mate! :D
Too late for me :p
Niiiice! 😁
I finally made it, and... though i think it's much harder than 5 kyu, it took me about 3 days of visualizing, drawing many simulations on paper, and searching patterns, till i finally cracked the magic algorithm that allows to setup the structure with one loop "for", and assign all collisions on less or equal to a single other loop. 1 million of collisions calculated in a single second, and 10 millions of collisions calculated in about 10 seconds on my laptop, super happy! Thanks for the opportunity to scratch my head that much, without any help, it was the best feeling ever!
I can't tell why, but as i read you, i finally got it! Now i know i can do it, thanks a lot!
So, this is my very first kata about optimisation, and i know basically nothing about it. I managed to solve the kata for up to 100 ants, but 10'000 doesn't pass.
I'll do my researches but if anyone have some recommendations to get my head wrapped on it efficiently, i'm all ears! :D
It's a great kata though, i like it, even if break my coconut head on it :P
Well, same here, i used the bubble-sort, but i'm still proud of us, as well, we are problem solvers, and we just solved one :D
I agree with others that this kata have very little to do with coding, and lot to do with maths. I'm mainly doing katas for getting better at coding, and i don't mind if there is SOME maths to the problem, but here... coding side, it's a no brainer, and math side, if you are not good with math... good luck!
The description is really not clear, a simple example of input vs output would make it clear for everyone for sure : input = "4 years old" ; output = "4" <= here, 4 need to be a number and not a string.
Wow, i literrally understand nothing of this sollution... hopefully it was not written by a true 7 kyu student, or i'm far behind!
When i read those kind of sollutions, i get that i need to learn a LOT!
Very clever, but just a bit cryptic to my taste.
Oh, i learned something today! Thanks for this clever sollution!
Thanks for quick reply!
Loading more items...