(LinkedListNode list, int data)
| 52 | } |
| 53 | |
| 54 | private static LinkedListNode insertBefore(LinkedListNode list, int data) { |
| 55 | LinkedListNode node = new LinkedListNode(data, null, null); |
| 56 | if (list != null) { |
| 57 | list.prev = node; |
| 58 | node.next = list; |
| 59 | } |
| 60 | return node; |
| 61 | } |
| 62 | |
| 63 | public static int linkedListToInt(LinkedListNode node) { |
| 64 | int value = 0; |
no outgoing calls
no test coverage detected