()
| 136 | } |
| 137 | |
| 138 | public void reverse() { |
| 139 | Node prev = null; |
| 140 | Node curr = tail = head; |
| 141 | Node next; |
| 142 | |
| 143 | while(curr != null) { |
| 144 | next = curr.next; |
| 145 | curr.next = prev; |
| 146 | prev = curr; |
| 147 | curr = next; |
| 148 | } |
| 149 | head = prev; |
| 150 | } |
| 151 | |
| 152 | public void removeNthfromEnd(int n) { |
| 153 | //size |
nothing calls this directly
no outgoing calls
no test coverage detected