@@ -0,0 +1,573 @@
+public static int getLength(Node head)%0A%7B%0A  Node cur = head;%0A  int length = 0;%0A  while(curr != null)%0A  %7B%0A    length++;%0A    cur = curr.next;%0A  %7D%0A  return length;%0A%7D%0A%0Apublic static void removeNth(Node head, int n, int length)%0A%7B%0A  int nthToLast = length - n;%0A  if(nthToLast %3C 0)%0A  %7B%0A    System.out.println(%22Invalid removal value%22);%0A    return;%0A  %7D%0A  %0A  int iterator = 0;%0A  Node curr = head;%0A  while(iterator != nthToLast - 1)%0A  %7B%0A    curr = curr.next;%0A    iterator++;%0A  %7D%0A  curr.next = curr.next.next;%0A%7D%0A%0Apublic static void main (String%5B%5D args)%0A%7B%0A  // add function calls here%0A%7D%0A

Create ctci2point2.java