Count And Say

Thoughts
  • So it took me 5 minutes to make a successful submission.

  • I still think this is not the most optimal solution.

  • This one's a O(n2)O(n^2)​ solution. I'll just go ahead and see the actual solution.

  • This is it. My solution is clearer and lighter than the one provided.

Time Complexity: O(n2)O(n^2)​

Space Complexity: O(n)O(n) for the result

Last updated