Getting tle in rotate image problem

getting tle in rotate image problem .I have reverse rows and r=then taken transpose of it.

@guptashubham210a share your code using cb ide

I have sended the screenshot oof my code

@guptashubham210a
In the third loop from first for loop you are not updating the values of l and h


Try updating that

WHAT does declaring static global variable mean?

Refer this http://faculty.cs.niu.edu/~freedman/241/241notes/241var2.htm
or certainly there are resources on geeks for geeks you can access that

did you try out updating the values of l and h on above doubt??

This is my code ,I am still getting error

@guptashubham210a corrected

yes but still not getting coorrect matrix

Got it, thanks and ignore this.

Now! please click “Mark as resolved” doubt if you have nothing further to ask and rate us!

-regards

wait pls,one doubt in that swap call it should be only h na instead of h-l ,
swap(arr[i][l],arr[i][h])

@guptashubham210a yes it should be h only forgot to change it

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.