Is it possible to use bubble sort the strings on linked list in C programming?
I could not found any information about it.
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.
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
Thank you!