File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
data_structures/linked_list Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -70,16 +70,20 @@ def reverse(self):
70
70
71
71
def main ():
72
72
A = Linked_List ()
73
- print ("Inserting 10 at Head" )
74
- A .insert_head (10 )
75
- print ("Inserting 0 at Head" )
76
- A .insert_head (0 )
73
+ print ("Inserting 1st at Head" )
74
+ a1 = input ()
75
+ A .insert_head (a1 )
76
+ print ("Inserting 2nd at Head" )
77
+ a2 = input ()
78
+ A .insert_head (a2 )
77
79
print ("\n Print List : " )
78
80
A .printList ()
79
- print ("\n Inserting 100 at Tail" )
80
- A .insert_tail (100 )
81
- print ("Inserting 1000 at Tail" )
82
- A .insert_tail (1000 )
81
+ print ("\n Inserting 1st at Tail" )
82
+ a3 = input ()
83
+ A .insert_tail (a3 )
84
+ print ("Inserting 2nd at Tail" )
85
+ a4 = input ()
86
+ A .insert_tail (a4 )
83
87
print ("\n Print List : " )
84
88
A .printList ()
85
89
print ("\n Delete Head" )
You can’t perform that action at this time.
0 commit comments