Ad
  • Custom User Avatar

    judging by the date of the solution, I was just learning codewars to use codewars. Nowadays, I wouldnt attempt a solution like this because it's not in the spirit of the problem. However, because of the simplicity of the test cases, I was able to complete the Kata without learning the point being driven by the prompt.

    I sleep very well, most nights, thank you for asking!

  • Custom User Avatar
  • Custom User Avatar

    I was working on a timed coding challenge for a job today, less than 24 hours after completing this kata. The challenge involved finding permutations and combinations. While I did it the "hard way" to complete this challenge, for the time crunched interview, I went straight to itertools!

  • Custom User Avatar

    I really like this approach. Very pythonic for a difficult algorithm!!!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I believe there should be an itertools restriction on this code, being 4kyu. Using tools available is definitely an important skill as a coder, but is not in the spirit of this 4 kyu challenge. I was aware of itertools before starting this code, but I really wanted to challenge myself, which is why I made the effort to code without the library.

    I wish there was a way to give a thumbs down to the code.

    The funny thing about this solution causing contraversy is that the poster of this solution probably only wanted to "level up", and not really learn. Leveling up is certainly fun, and is what got me addicted to programming on this site. Ironically, all of these comments are actually improving this coders ranking on the site.

  • Custom User Avatar

    I'd appreciate comments here to explain the regex, but I love the strategy

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution