Rotated Array
When kind operations can you do in array with constant space?
We can swap(arr[a], arr[b]) and reverse(arr).
Last updated
When kind operations can you do in array with constant space?
We can swap(arr[a], arr[b]) and reverse(arr).
Last updated