1
Reply

How to inverse the link list in C++?

Ask a question
Joe Wilson

Joe Wilson

10y
825
1
I mean first ask user to add some numbers to link list then use a function to inverse nodes of the link list
 
 for example: 
 
it is a set of added number by user:
 
note: suppose that the numbers below are in the nodes.
 
 52 32 14 22 56 11
 
 
after using the inverse function:
 
 11 56 22 1432
 52
 

Answers (1)