Can anyone solve this problem without using extra matrix
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
first transpose it
now reverse colums if u want a clockwise rotation
else reverse rows for anti clockwise rotation
On Sat, Aug 6, 2011 at 11:48 PM, Algo Lover algolear...@gmail.com wrote:
Can anyone solve this problem without using extra matrix
--
You received this message because you are
is it lyk for {1,2,3
4,5,6,
7,8,9}
to be {3,2,1,
6,5,4,
9,8,7}??
On Wed, Jul 27, 2011 at 9:37 AM, Deoki Nandan deok...@gmail.com wrote:
rotate a 2D matrix by angle 180
--
**With Regards
Deoki Nandan Vishwakarma
*
*
--
You
rotate a 2D matrix by angle 180
--
**With Regards
Deoki Nandan Vishwakarma
*
*
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
Let k=no. of rows
If k=odd
mirror the matrix about the ((k/2)+1) th row..
else start from k/2 and (k/2 +1 )th row, swap the two rows.. then
k/2-1 and k/2 +2 and swap and soon...
OR
maintain array as a pointer table.. keep on changing the base address
to which a[i points to..
Let
*You are given a integer and you want to rotate the bits of the number by a
value x. Consider the right rotation by x means the least significant x bits
should go out from left and take the position of most significant x bits.*
--~--~-~--~~~---~--~~
You received