Source |
CodingSec |
Identifiant |
3344 |
Date de publication |
2016-06-28 17:00:00 (vue: 2016-06-28 17:00:00) |
Titre |
What is gnome sort? How it works?? |
Texte |
Gnome Sort also called Stupid sort is based on the concept of a Garden Gnome sorting his flower pots. A garden gnome sorts the flower pots by the following method- He looks at the flower pot next to him and the previous one; if they are in the right order he steps one pot forward, otherwise he swaps them and steps one pot backwards. If there is no previous pot (he is at the starting of the pot line), he steps forwards; if there is no pot next to him (he is at the end of the pot line), he |
Envoyé |
Oui |
Condensat |
also appeared are backwards based called coding concept end first flower following forward forwards; garden gnome him his how line looks method next one one; order otherwise post pot pots previous right security sort sorting sorts starting steps stupid swaps them what works |
Tags |
|
Stories |
|
Notes |
|
Move |
|