You are viewing a single comment's thread. Return to all comments →
It's O(1) time(for each query) and O(n) space, not the other way around.
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
It's O(1) time(for each query) and O(n) space, not the other way around.