XML 1 - Find the Score

  • + 2 comments

    This is how i did it; Java.

    static int[] rotLeft(int[] a, int d) {
        int temp;
        for (int i = 0; i < d ; i++ ){
            temp = a[0];
            for (int j = 0; j < a.length-1 ; j++){
                a[j]=a[j+1];
            }
            a[a.length-1]=temp;
        }return a;
    }