Write a method leftRotate
which rotates the array n
times. Each rotation shifts all elements to the left and places the first element at the end.
leftRotate(int[] array, int n)
//write pseudocode
Case 1:
# Installing Jenkins on Ubuntu | |
sudo apt-get -y update | |
sudo apt-get install -y openjdk-8-jdk | |
sudo apt-get install -y maven | |
sudo apt-get install -y git-all | |
sudo wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
sudo echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list | |
sudo apt-get install -y jenkins | |
sudo service jenkins status |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running cucumber.RunCukesTest | |
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.409 sec <<< FAILURE! | |
initializationError(cucumber.RunCukesTest) Time elapsed: 0.009 sec <<< ERROR! | |
java.lang.NoClassDefFoundError: org/jdom2/JDOMException | |
at java.lang.Class.getDeclaredMethods0(Native Method) | |
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) | |
at java.lang.Class.privateGetPublicMethods(Class.java:2902) |