Beispiel #1
0
 public ListNodes Method(ListNodes head, int val)
 {
     if (head == null)
     {
         return(head);
     }
     head.next = Method(head.next, val);
     return(head.val == val ? head.next : head);
 }
Beispiel #2
0
 public ListNodes(int val = 0, ListNodes next = null)
 {
     this.val  = val;
     this.next = next;
 }