Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
it depends on the data you want to sort. each algorithm has a best and worst case. there is a large number of algorithms because one does not solve all cases efficiently.
20th Dec 2019, 9:22 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
Generally for less data you can use bubble sort and for larger data you can use merge sort. Both are efficient in their respective uses.
20th Dec 2019, 10:11 AM
Avinesh
Avinesh - avatar