You are viewing a single comment's thread. Return to all comments →
No need to rotate the array you can do this problem much faster. Take a look here, i have explained it in detail.
Circular Array Rotation
Hope it helped you
I tried your solution, but I get this error when I try for large inputs as given in test cases: Sorry, we can't accept your submission. The custom input size should not exceed 50Kb.
hi @poon12, the solution is working fine, you must have done something wrong. Can you post your code here so that i can check.
hi @Dinesh1306 your solution got accepted. thanks :)
but yes when i try the solution with large inputs, it gives me that custom input size error.