You are viewing a single comment's thread. Return to all comments →
hi can you explain how it is taking O(1) space when you are using :
int[] a = new int[n]; That will aquire a space of O(1)
Seems like cookies are disabled on this browser, please enable them to open this website
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
hi can you explain how it is taking O(1) space when you are using :