+ 4
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 :(
4 Answers
+ 7
easy way,
with run time summary of all algorithm,
check it once,
https://code.sololearn.com/cY7SC8lmidwy/?ref=app
+ 3
it shows that bubble is faster than selection
+ 2
I think I have discovered the problem
I am using filter to delete vector minimum element this may be make the code slow
+ 1
Maybe non optimized algorithm
Check my research đ€đ and thumb-up in codebit if likes. This also encourage myself to continue with next sorting algorithms
https://code.sololearn.com/ciT6SI8eE9Q4/?ref=app