Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ ListNode
Class
ListNode
leetcode/2. Add Two Numbers.py:6–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
Output: 7 -> 0 -> 8
5
''
&
#x27;
6
class
ListNode(object):
7
def
__init__(self, x):
8
self.val = x
9
self.next = None
10
11
class
Solution(object):
12
def
addTwoNumbers(self, l1, l2):
Callers
1
addTwoNumbers
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected