+ 1

Linked List Question

Hello everyone i couldn't find the anwer of this example in book(there were only odd number's questions answers)Im practicing so im not sure of correct answer Help pls current = new nodeType; current -> info = 72; current -> link = NULL; trail = current; current = new nodeType; current -> info = 46; current -> link = trail; list = current current = new nodeType; current -> info = 52; list -> link = current; current -> link = trail ; trail = current; current = new nodeType; current -> info =91; current -> link = trail ->link; trail -> link = current; current = list; while (current !=NULL) { cout << current -> info <<endl;}

28th Nov 2021, 9:15 AM
titan
4 Respuestas
+ 8
titan Linked list implementation is done while checking previous and next node connections. Here at sololearn you can find an elaborated implementation with explanation. Below is that lesson go and try to read that. If you face any issue after that share that in the thread. https://www.sololearn.com/learn/634/?ref=app https://www.sololearn.com/learn/645/?ref=app
28th Nov 2021, 10:56 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
What is the exact question statement? Also for the links not working, they're only accessible from the mobile app currently.
28th Nov 2021, 11:46 AM
Nikhil
Nikhil - avatar
+ 1
thank you but link is not working
28th Nov 2021, 10:59 AM
titan