Thread: Is it possible to use bubble sort the strings on linked list?

  1. #1
    Registered User
    Join Date
    Jun 2020
    Posts
    7

    Question Is it possible to use bubble sort the strings on linked list?

    Is it possible to use bubble sort the strings on linked list in C programming?

    I could not found any information about it.
    Last edited by grizzael; 06-11-2020 at 12:10 AM.

  2. #2
    Registered User
    Join Date
    May 2012
    Posts
    405
    Yes, bubble sort can be adapted to work on linked lists. Bubble sort means pass through the list, and if two items are in reverse order, swap them and set a flag. Stop when you have passed through the list without setting the flag. You'll have to show your attempt if you want much help.
    I'm the author of MiniBasic: How to write a script interpreter and Basic Algorithms
    Visit my website for lots of associated C programming resources.
    https://github.com/MalcolmMcLean


  3. #3
    Registered User
    Join Date
    Jun 2020
    Posts
    7
    Thank you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 11-30-2013, 08:44 PM
  2. Bubble Sort on a Singly Linked List
    By bigmac(rexdale) in forum C++ Programming
    Replies: 9
    Last Post: 03-23-2011, 10:13 AM
  3. Bubble sort on linked list not working.
    By mike_g in forum C Programming
    Replies: 12
    Last Post: 07-04-2007, 03:06 AM
  4. bubble sort in a linked list
    By condorx in forum C++ Programming
    Replies: 1
    Last Post: 12-08-2002, 08:41 AM
  5. Linked list bubble sort
    By Unregistered in forum C Programming
    Replies: 10
    Last Post: 11-01-2001, 11:54 AM

Tags for this Thread