| 1 | // Definition for singly-linked list. |
| 2 | #[derive(PartialEq, Eq, Clone, Debug)] |
| 3 | pub struct ListNode { |
| 4 | pub val: i32, |
| 5 | pub next: Option<Box<ListNode>> |
| 6 | } |
| 7 | |
| 8 | pub fn reverse_list(head: Option<Box<ListNode>>) -> Option<Box<ListNode>> { |
| 9 | if head == None || head.as_ref() == None { |
nothing calls this directly
no outgoing calls
no test coverage detected