Ad
  • Custom User Avatar

    Oh, you are a codewars warrior, nice :) Does it get better with lower kyu katas?
    My skills are just not yet there to be able to solve 1-5 kyu katas, maybe some of the 5s.
    Also can you recommend materials to improve algorithmic skills? I am mainly interested in JS. If you had any ideas, that would be great.

  • Custom User Avatar

    Solutions with O(n^2) time complexity should never be the best practise in my opinion, if there is a better solution with the same readability(not mine, it looks bad without refactoring).
    I see here very often, that not good solutions have been upvoted as hell.

    It is kind of lame, because if you want to compare and fix your crappy solution you often only see other crappy solutions with slightly different syntax at the top.

  • Custom User Avatar

    Actually no, it doesn't because of the nested looping. Time complexity is the same: O(n^2), which is not ideal.