You are viewing a single comment's thread. Return to all comments →
But taking X := MAX(N,M) means we can say O(2X) -> O(X) == O(N) Therefore it is O(N).
Right?
Seems like cookies are disabled on this browser, please enable them to open this website
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
But taking X := MAX(N,M) means we can say O(2X) -> O(X) == O(N) Therefore it is O(N).
Right?