Joe Wilson

Joe Wilson

  • NA
  • 7.8k
  • 434.7k

How to inverse the link list in C++?

Sep 27 2014 11:57 AM
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)