0

Help with a linkedlist

Trying to append and print out a linked list but my output is stil "No Output" can someone help me please? https://code.sololearn.com/c5tlogsnvlhe/?ref=app

1st Oct 2019, 10:31 AM
Theuns Booysen
Theuns Booysen - avatar
2 Answers
+ 1
you forget parenthesis when calling display at the bottom also move cur.next = new_node outside of the loop in the append method
1st Oct 2019, 11:26 AM
Taste
Taste - avatar
0
fixed, updated, working 100% THANK YOU SO MUCH!!!
1st Oct 2019, 11:29 AM
Theuns Booysen
Theuns Booysen - avatar