MCPcopy Create free account
hub / github.com/ashishps1/awesome-leetcode-resources / ListNode

Class ListNode

patterns/python/reverse_list.py:1–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class ListNode:
2 def __init__(self, val=0, next=None):
3 self.val = val
4 self.next = next
5
6def reverse_list(head):
7 prev = None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected