
算法
Java
Leetcode
Golang
Java
Leetcode
Golang
Question
Reverse a singly linked list.
See it on Leetcode
|
|
Hint
A linked list can be reversed either iteratively or recursively. Could you implement both?
Solution in iteratively approach
- java
- cpp
- go
1 |
|
Solution in recursively approach
- java
- cpp
- go
1 |
|




近期评论