Its o(N) only .The answer is damn Correct!
InterviewBit Problems
NESTED_CMPL3 : Unsolved
arik_ash
2020-04-01 14:28:41 UTC
#1
The answer comes out to be O(2N-1/2) = O(N)
{ N + N(N-1)/N + 1/2 }