Ad
  • Custom User Avatar

    Best in terms of function operating time. I mean, why do complex calculations when you can do it straight away? As a complete beginner, I discover on other katas that sometimes the simplest head-on solutions are the best in time, but sometimes complex calculations work tens of times faster than similar head-on solutions. I would also do it through a set so that the algorithmic time is O(1)

  • Custom User Avatar