Skip to content

Instantly share code, notes, and snippets.

@Test
public void simpleDistributionTest() {
// Arrange
List<String> data = Arrays.asList("red", "red", "blue", "blue", "green", "green");
// Act
List<String> result = evenlyDistribute(data);
// Assert
List<String> expectation = Arrays.asList("red", "blue", "green", "red", "blue", "green");
@gb
gb / robot.js
Created December 6, 2012 13:09
CloneBOT
var Robot = function(robot) {
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
};
Robot.prototype.onScannedRobot = function(ev) {