Test Case 2 giving wrong answer
Stack span Problem
here u can look at my simple stack based solution of this problem
it takes O(N) time as well space
Test Case 2 giving wrong answer
here u can look at my simple stack based solution of this problem
it takes O(N) time as well space