accept items in a singly linked list and sort the nodes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pilatos
    New Member
    • Jan 2013
    • 1

    accept items in a singly linked list and sort the nodes

    i want to make a program that accepts 15 items in a singly linked and sorts the nodes.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    I suggest you keep the single linked list in sorted order as you add the nodes. That saves writing a sort.

    Code for a single linked list is available on the web.

    Comment

    Working...