ScratchData LogoScratchData
Back to NotAJumbleOfNumbers's profile

A bad sorting algorithm

NONotAJumbleOfNumbers•Created February 21, 2018
A bad sorting algorithm
2
0
49 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

14, I think. Does the program have to terminate when the list is sorted?

Project Details

Project ID205402873
CreatedFebruary 21, 2018
Last ModifiedFebruary 21, 2018
SharedFebruary 21, 2018
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root