Ad
  • Custom User Avatar

    Oh I guess, Blind4Basics, you and I changed simultaneously but I love your code so let's stick with it.

  • Custom User Avatar

    Thank you FArekkusu. Gave it some more randomness. It's still not 100% random though. I don't know how to make it more random without my test code being running in O(n)

  • Custom User Avatar

    Thank you so much Blind4Basics! Now I know the nightmare.

  • Custom User Avatar

    That's a good point! I did it.

  • Custom User Avatar

    Thank you for pointing out. I was so naive. Added some random variation.

  • Custom User Avatar
    • O(n) shouldn't pass the tests. If you have a O(n) solution, let me increase the size of input.
    • I didn't notice that. Could you kindly let me know the similar existing katas? If there is a duplicate, no reason to maintain this.