Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ ListNode
Class
ListNode
Python/add two linked list.py:3–6 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# ADD TWO SORTED LINKED LIST
2
3
class
ListNode:
4
def
__init__(self, val=0, next=None):
5
self.val = val
6
self.next = next
7
class
Solution:
8
def
mergeTwoLists(self,l1:ListNode,l2:ListNode)->ListNode:
9
cur=ListNode(0)
Callers
1
mergeTwoLists
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected