insert sort linked list???

This is a discussion on insert sort linked list??? within the C++ Programming forums, part of the General Programming Boards category; Hi all...... Please any one have the code of the insert sort of a linked list ?? I really need ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    10

    insert sort linked list???

    Hi all......
    Please any one have the code of the insert sort of a linked list ??
    I really need it today cuz i have a test on it tomorrow

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Please any one have the code of the insert sort of a linked list ??
    Well, yes I do. I've even put it online in the public domain, but don't you think that you should be doing your own homework? Cheating is bad karma.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    10
    no I'm not cheating Prelude I just have a test tomorrow on linked lists and i do know a few ideas with linked lists like sorting a linked list that already inserted and deleting a node and so on but i need to know how to do the insertion + the sort at the same time this is is the only missing idea that i don't know

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >but i need to know how to do the insertion + the sort at the same time
    Okay, do you want to take an existing list and sort it, or keep a list sorted as you insert into it? If it's the former, you can find my code for it on my website (or by searching these forums). If it's the latter, search the forums as that's a fairly common question.
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    Oct 2005
    Posts
    10
    thanx alot for helping ...i'll search and try to find it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting linked list please help with CODE
    By scarlet00014 in forum C Programming
    Replies: 3
    Last Post: 09-28-2008, 12:24 AM
  2. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 07:16 PM
  3. compiler build error
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 10:16 AM
  4. How to use Linked List?
    By MKashlev in forum C++ Programming
    Replies: 4
    Last Post: 08-06-2002, 08:11 AM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 11:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21