Introduction
It is the medium level algorithm called sum root to leaf number. My idea to solve the problem is to pass in prefix sum and use recursive solution. My mistake in my first attempt on sample test case doubles the value from 25 to 50.
Here is my C# code.
No comments:
Post a Comment