This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEPENDENCIES | |
scm_jenkins | |
path: . | |
metadata: true | |
GRAPH | |
apt (6.0.1) | |
build-essential (8.0.0) | |
mingw (>= 1.1) | |
seven_zip (>= 0.0.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kitchen converge | |
-----> Starting Kitchen (v1.15.0) | |
W, [2017-04-12T17:09:51.956502 #8552] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.956502 #8552] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.957005 #8552] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.957005 #8552] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#froz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
/* | |
* To execute Java, please define "static void main" on a class | |
* named Solution. | |
* | |
* If you need more classes, simply define them inline. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ListOperations { | |
public void nextPermutation(int[] nums) { | |
int nonDecIdx=nums.length-1; | |
//int[] result; | |
if(nums.length==1) | |
return; | |
while(nonDecIdx > 0){ | |
if(nums[nonDecIdx] > nums[nonDecIdx-1]) | |
break; | |
nonDecIdx--; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Hanoi{ | |
public static void towerOfHanoi(int numberOfRings){ | |
//final int NUM_OF_PEGS=3; | |
List<Deque<Integer>> pegs = new ArrayList<>(); | |
for(int i=0; i<NUM_OF_PEGS; i++){ | |
pegs.add(new LinkedList()); | |
} | |
//Initialize the first Peg |