[algogeeks] Rotate a 2-D matrix by 90 degree inplace.

2011-08-06 Thread Algo Lover
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

Re: [algogeeks] Rotate a 2-D matrix by 90 degree inplace.

2011-08-06 Thread vaibhav shukla
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

Re: [algogeeks] rotate a matrix NVIDIA question

2011-07-27 Thread Anika Jain
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

[algogeeks] rotate a matrix NVIDIA question

2011-07-26 Thread Deoki Nandan
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

Re: [algogeeks] rotate a matrix NVIDIA question

2011-07-26 Thread Puneet Gautam
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

[algogeeks] ROTATE

2009-10-12 Thread ankur aggarwal
*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