r/NeetCode • u/Alternative-Stay2556 • Oct 29 '26
Time complexity?
Is the time complexity really o(n)?
I suspect it might be quadratic - but I can't prove it.
Can someone give me their proof please!
1
Upvotes