You are viewing a single comment's thread. Return to all comments →
Yes, O(N) because you have to go through every element regardless of factor.
Seems like cookies are disabled on this browser, please enable them to open this website
Cycle Detection
You are viewing a single comment's thread. Return to all comments →
Yes, O(N) because you have to go through every element regardless of factor.