kaustubhgupta / Hacktoberfest

This is for the information that the repository has been excluded by the Hacktoberfest team from the event. This was done to maintain the quality standards and promote good quality open source contributions.
MIT License
55 stars 277 forks source link

Added Code for Shell Sort, closes #637 #617

Closed Sam071100 closed 2 years ago

Sam071100 commented 2 years ago

Fixes #637

Shellsort, also known as Shell sort or Shell's method, is an in-place comparison sort. It can be seen as either a generalization of sorting by exchange (bubble sort) or sorting by insertion (insertion sort). The method starts by sorting pairs of elements far apart from each other, then progressively reducing the gap between elements to be compared. By starting with far apart elements, it can move some out-of-place elements into the position faster than a simple nearest-neighbor exchange.

Type of change

Sam071100 commented 2 years ago

What kinds of improvements are required? Please specify?

kaustubhgupta commented 2 years ago