Introduction
It is an easy level algorithm. I worked on the algorithm and then I figured out that my analysis was not correct, I failed the test case [11,11, 9,4,3,3,3,1,-1,-1,3,3,5,5,5]. And then I got the idea to write the following code.
My practice
Here is my C# code shared on Leetcode discuss.
No comments:
Post a Comment