please help me to understand the transpose part after reverse I won’t be able to understand that part help me to do that
Rotate image question
I don’t want the code I just want to understand that transpose part only just explain me after reverse that transposed part only that much explain me
All we have to do after reversing is swap the elements across the diagonal of the matrix… thus we check if i < j then just swap(a[i][j],a[j][i])
i hope its clear now??
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.
that i and j is row and col right we are just swapping them and when row is less than col then only we have to swap it
yes… correct …