https://ide.codingblocks.com/s/56146
whats wrong in my code… one test case is passed but other is having run-error
Rotate image anticlockwise
This is because the constraints are for N * N where N < 1000 , but you have taken array of just 10 size .
Either Dynamically take the array or take it as
int arr [1005][1005] ;
1 Like