Skip to content

Instantly share code, notes, and snippets.

View svpino's full-sized avatar
🏠
Working from home

Santiago Valdarrama svpino

🏠
Working from home
View GitHub Profile
@svpino
svpino / RotatingMatrix90DegreesInPlace.java
Last active June 8, 2018 11:00
Programming challenge: rotating a matrix 90 degrees in place
// Programming challenge: rotating a matrix 90 degrees in place
// Original post: https://blog.svpino.com/2015/05/10/programming-challenge-rotating-a-matrix-90-degrees-in-place
public class RotatingMatrix90DegreesInPlace {
private static int[][] matrix = {
{ 1, 2, 3, 4 },
{ 5, 6, 7, 8 },
{ 9, 10, 11, 12 },
{ 13, 14, 15, 16 }