We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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;
}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
XML 1 - Find the Score
You are viewing a single comment's thread. Return to all comments →
This is how i did it; Java.