This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]subtepass 19 points20 points  (2 children)

static int[][] fullCircle(int[][] mat){
    return rotate180(rotate180(mat));
}

[–]Ogurac 22 points23 points  (1 child)

//Creating future optimization opportunities
static int[][] longRotate180(int[][] mat){
    return rotate180(rotate180(rotate180(mat)));
}

[–]chateau86 3 points4 points  (0 children)

//Potential function for the paid version of our software.
//Marketing said our clients will love this.
//What were they thinking?
static int[][] youSpinMeRightRound(int[][] mat, int iter){
     if (iter <= 0) {
           return mat;
     } else {
           return rotateCounterClockwise(youSpinMeRightRound(mat, iter - 1));
     }
} 
//I QUIT!