Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Matrix rotation !
06-13-2009, 09:47 PM (This post was last modified: 06-21-2009 04:50 AM by drdebcol.)
Post: #1
Matrix rotation !
This is an interesting assignment !
You have a 2-d array and you have to rotate it left and right for 90 degrees and for 180 degrees !
For example :

123
456

left
36
25
14

right

41
52
63

180 degrees
654
321

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: