package com.github.yaterz.ctci.cii;

/**
 * @author mattyaterz
 * @since 11/8/14
 */
public class C2E3Solution {
    public static void removeNode( SingleLinkedNode node ) {
        if ( node == null ) {
            return;
        }

        if ( node.next != null ) {
            SingleLinkedNode next = node.next;
            node.next = next.next;
            node.element = next.element;
        }
    }
}

@@ -34,16 +34,126 @@
 i;%0A%0A/**%0A
+ * Delete a node in the middle of a singly linked list given the node to delete (not the head of the list)%0A *%0A
  * @auth

Add description