Skip to content

Instantly share code, notes, and snippets.

@sivikt
sivikt / LinkedListCloning.java
Last active August 29, 2015 14:09
LinkedListCloning
public class LinkedListCloning {
public static class Node<T> {
public T value;
public Node<T> next;
public Node<T> random;
public Node(T value, Node<T> next) {
this.value = value;
this.next = next;
#!/bin/sh
if [ -z "$1" ]; then
echo "Specify workload file name"
exit 1
fi
if [ -z "$2" ]; then
echo "Specify workload phase"
exit 1