## template
```python
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def reverseList(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
current = head
nextNode = None
h = head
while current is not None and current.next is not None:
nextNode = current.next
if nextNode.next is not None:
tmpNode = current.next
current.next = nextNode.next
tmpNode.next = h
else:
current.next = None
nextNode.next = h
h = nextNode
return h
```
## 答案
```python
```
## 选项
### A
```python
```
### B
```python
```
### C
```python
```