if my first array is rotating correctly then why not the subsequent array rotating… give me the reason I am not able to get it
Rotation of array
@gaurav19063
Your code is unfortunately completely incorrect
Please see this code and see what the solution should have been
but it is rotating once when i used rotate on the array correctly why not it rotates further like it?
@gaurav19063
You’re rotating only the outer array
Not the inner one
Please refer the code I’ve sent
You’ll see the difference
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
@Aarnav-Jindal-1059677350830863
I am not able to swap the element i dont get it why
this is the code:-https://ide.codingblocks.com/s/287366
Problem link:-https://practice.geeksforgeeks.org/problems/rotate-by-90-degree0356/1