This question was asked in a Microsoft interview 2 years back.

On Mon, Jun 7, 2010 at 8:05 PM, divya jain <[email protected]> wrote:

> let a[n][n] be the input array nd b[][] be the output
>
>
> for(i=0;i<n;i++)
>      for(j=0;j<n;j++)
>          b[i][j]=a[n-j-1][n-i-1]
>
>
>
> On 7 June 2010 08:26, sharad <[email protected]> wrote:
>
>> write a c routine to flip an nXn matrix about its non major diagnol
>>
>>
>> 3       4       5
>> 6       7       9
>> 1       2       8
>>
>> Transpose is:
>> 8       9       5
>> 2       7       4
>> 1       6       3
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<algogeeks%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to