Gnome sort is a sorting algorithm based on the concept of a Garden Gnome sorting his flower pots. A garden gnome sorts the flower pots like first he checks a flower pot next to him and previous one , if they are in correct order , he moves one step forward . If not he swaps the pot until it suits in the right order .
Fixes: #160
Type of change
[x] New feature (non-breaking change which adds functionality)
Checklist:
[x] I have made this from my own
[x] I have taken help from some online resourses
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
C++ :
Java :
I hope you will merge this PR, so that I can contribute to your other issues also 👍
Thank You !!!!!
Description
Gnome sort is a sorting algorithm based on the concept of a Garden Gnome sorting his flower pots. A garden gnome sorts the flower pots like first he checks a flower pot next to him and previous one , if they are in correct order , he moves one step forward . If not he swaps the pot until it suits in the right order .
Fixes: #160
Type of change
Checklist:
ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
C++ :
Java :
I hope you will merge this PR, so that I can contribute to your other issues also 👍 Thank You !!!!!