Introduction
It is an easy level algorithm. I wrote a recursive solution, but the code failed last test case. The recursive function causes stack overflow.
My first practice
Here is my C# code failed last test cases. Here is the link on Leetcode discuss.
No comments:
Post a Comment