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?
O(n), where n is the number of elements in matrix
O(n), where n is the number of elements in matrix
Run make to build and run C++ files and run Swift files. Or you can run .playground file.