Sorting algorithms | Sololearn: Learn to code for FREE!


Sorting algorithms

bubble sort is faster than selection one isn't it? I have writen two codes and I was surprised that bubble is faster than selection :(

1/27/2018 7:43:55 PM

Abdurrahman Abulgasim

4 Answers

New Answer


easy way, with run time summary of all algorithm, check it once,


it shows that bubble is faster than selection


I think I have discovered the problem I am using filter to delete vector minimum element this may be make the code slow


Maybe non optimized algorithm Check my research 🤓😉 and thumb-up in codebit if likes. This also encourage myself to continue with next sorting algorithms