Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 16793b7

Browse files
add return in print_linked_list
1 parent 3a35a89 commit 16793b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/common_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def print_linked_list(head):
1414
s += '->'
1515
node = node.next
1616
print(s)
17+
return s
1718

1819

1920
def build_linked_list(arr):

0 commit comments

Comments
 (0)