Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Rotate Matrix

Given an image represented by a NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?

Solutions:

Swift

O(n), where n is the number of elements in matrix

C++

O(n), where n is the number of elements in matrix

Installation

Run make to build and run C++ files and run Swift files. Or you can run .playground file.