Ad
  • Custom User Avatar
  • Custom User Avatar

    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!

  • Custom User Avatar

    I can't tell why, but as i read you, i finally got it! Now i know i can do it, thanks a lot!

  • Custom User Avatar

    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

  • Custom User Avatar

    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

  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    Wow, i literrally understand nothing of this sollution... hopefully it was not written by a true 7 kyu student, or i'm far behind!

  • Custom User Avatar

    When i read those kind of sollutions, i get that i need to learn a LOT!

  • Custom User Avatar

    Very clever, but just a bit cryptic to my taste.

  • Custom User Avatar

    Oh, i learned something today! Thanks for this clever sollution!

  • Custom User Avatar

    Thanks for quick reply!

  • Custom User Avatar

    I'm new to "let" and i see that the code is set up with it, so i just wonder... what should go there, the final array, the "result" array ?