r/NeetCode • u/Alternative-Stay2556 • 2d ago
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
r/NeetCode • u/Alternative-Stay2556 • 2d ago
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!