Skip to content

Instantly share code, notes, and snippets.

package net.rodrigogarcia.net.Trees;
import java.io.*;
import java.util.*;
public class Solution {
static class Part {
public String getName() { return "X"; }
}
@rodchile
rodchile / gist:91a419222b9871b1701d
Last active August 29, 2015 14:16
order singly linked list nodes based on value
public class SinglyNode {
public SinglyNode next = null;
public int value;
public SinglyNode(int d)
{
value = d;
}
public static SinglyNode orderNodes(SinglyNode node, int value)