14 Commits

Author SHA1 Message Date
Yajushreshtha
72f52df420
Update heap_sort.py
In this enhanced version:

The function and variable names have been kept meaningful for readability.
Comments have been added for clarity.
The logic remains the same, but some variable names have been shortened to reduce line length.
The function and input processing code is unchanged for user-friendliness.
2023-10-03 01:15:51 +05:30
matkosoric
7f04e5cd34
contribution guidelines checks (#1787)
* spelling corrections

* review

* improved documentation, removed redundant variables, added testing

* added type hint

* camel case to snake case

* spelling fix

* review

* python --> Python # it is a brand name, not a snake

* explicit cast to int

* spaces in int list

* "!= None" to "is not None"

* Update comb_sort.py

* various spelling corrections in documentation & several variables naming conventions fix

* + char in file name

* import dependency - bug fix

Co-authored-by: John Law <johnlaw.po@gmail.com>
2020-03-04 13:40:28 +01:00
William Zhang
9eac17a408 psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
Christian Clauss
47a9ea2b0b
Simplify code by dropping support for legacy Python (#1143)
* Simplify code by dropping support for legacy Python

* sort() --> sorted()
2019-08-19 15:37:49 +02:00
cclauss
4e06949072 Modernize Python 2 code to get ready for Python 3 2017-11-25 10:23:50 +01:00
Akshay Sharma
9deae5d14c PEP style and tree traversals 2016-09-26 02:45:14 +05:30
yyeltsyn
bb70803c9e Update heap_sort.py 2016-09-02 13:59:46 +03:00
Harshil Darji
ca78a8a9af fixed heap_sort 2016-08-17 17:18:11 +05:30
JakeBonek
d31387455e Fixed spacing 2016-08-16 16:03:02 -04:00
JakeBonek
9e031e9783 Fixed spacing 2016-08-16 15:56:06 -04:00
JakeBonek
de8c5cbf00 Fixed typos 2016-08-16 12:56:38 -04:00
JakeBonek
e359b6efd4 Fixed typos and added the shell sort algorithm 2016-08-16 12:43:02 -04:00
arijit pande
7ce559ecdd added __future__ module 2016-08-14 10:04:21 +00:00
arijit pande
04d15692a8 added implementation for heap sort algorithm 2016-08-14 09:51:52 +00:00