You are viewing a single comment's thread. Return to all comments →
when we say O(N), N is a convention to the number of elements, so in this case len(a) = N, and O(N)*O(1) = O(N).
Seems like cookies are disabled on this browser, please enable them to open this website
Pairs
You are viewing a single comment's thread. Return to all comments →
when we say O(N), N is a convention to the number of elements, so in this case len(a) = N, and O(N)*O(1) = O(N).