Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ashishps1/awesome-leetcode-resources
/ ListNode
Class
ListNode
patterns/java/ReverseLinkedList.java:3–6 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
package
patterns.java;
2
3
class
ListNode {
4
int
val;
5
ListNode next;
6
}
7
8
public
class
ReverseLinkedList {
9
public
ListNode reverseList(ListNode head) {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected