Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kgabis
· 13y ago · 0 comments
I loop twice, so complexity is O(2N).
Actually, it's still O(N).
Comments
[–]
zng
13y ago
Yes. But O(2N) = O(N) :D