+ 5
Challenge: sorting
Lately I have had a sort of obsession with sorting algorithms, I think they are very clever. And there are so many types, so I wanted to introduce a challenge for anyone that wants to take it: code a sorting algorithm in any language you want, also you can decide wether to let the user input the numbers to be sorted or not, you can use any sorting algorithm or even create your own if that's what you want. But: if your language of choosing has a sort command, that's absolutely banned.
8 Respuestas
+ 12
sorting in c++
https://code.sololearn.com/cSVY49LLjJEI/?ref=app
+ 6
https://code.sololearn.com/ccdMm9KFurVt/?ref=app
+ 5
Taken from lesson factory
https://code.sololearn.com/coS2hC0HRva3/?ref=app
+ 4
Here is a powerful one - robust algorithm and easy to port on quantum computers. And a oneliner too. I think i win the challenge...
https://code.sololearn.com/ckA5HcM084nj/?ref=app
+ 3
Also I will leave my merge sort in case you guys want to take a look
https://code.sololearn.com/cltqjQPck1XP/?ref=app
+ 1
Using Java...
Let me know in the comments if it throws any unexpected error...
https://code.sololearn.com/cdLDDRDzIINm/?ref=app
+ 1
Here's my take:
https://code.sololearn.com/cWwe78c0vXRV/?ref=app