ScratchData LogoScratchData
Back to NotAJumbleOfNumbers's profile

The shortest cheaty sorting algorithm ever.

NONotAJumbleOfNumbers•Created March 9, 2018
The shortest cheaty sorting algorithm ever.
1
0
27 views
View on Scratch

Instructions

Remix this project with the following challenge/rules: CHALLENGE: - Sort a given list of unique numbers with the least number of blocks. - Your algorithm has to work with list lengths 2, 5, and 10 (any length is allowed for testing it though). RULES: - For this version of codegolf, a block is anything that can be pulled out of a script. See the example inside. - In this case, a list is sorted if each item value is equal to its index. - If you want to check if the list is sorted, you will have to include that in the scripts. - Custom blocks are allowed. - Recursion is allowed. - Extensions are not allowed. - Exploiting glitches is allowed (or, in this case, exploiting features in Scratch that would throw error messages in other languages). - Each value must be preserved and remain unique (as in, after any operation such as swapping or inserting, each value must be present once and only once in the list) within the Numbers list. If you have any questions, let me know.

Description

It only sorts once.

Project Details

Project ID208806101
CreatedMarch 9, 2018
Last ModifiedMarch 9, 2018
SharedMarch 9, 2018
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root