Sorting-Algorithms icon indicating copy to clipboard operation
Sorting-Algorithms copied to clipboard

Create Heap Sort.py

Open ghost opened this issue 5 years ago • 1 comments

heap sort in python

ghost avatar Oct 16 '20 07:10 ghost

Hello @ritabhkumar! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

  • In the file [Python/Heap Sort.py](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py):

[Line 1:49](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L1): W291 trailing whitespace [Line 2:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L2): W293 blank line contains whitespace [Line 3:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L3): W291 trailing whitespace [Line 4:20](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L4): W291 trailing whitespace [Line 5:24](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L5): W291 trailing whitespace [Line 6:16](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L6): E261 at least two spaces before inline comment [Line 6:45](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L6): W291 trailing whitespace [Line 7:5](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L7): E741 ambiguous variable name 'l' [Line 7:39](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L7): W291 trailing whitespace [Line 8:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L8): W291 trailing whitespace [Line 9:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L9): W293 blank line contains whitespace [Line 10:46](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L10): W291 trailing whitespace [Line 11:24](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L11): W291 trailing whitespace [Line 12:34](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L12): W291 trailing whitespace [Line 13:20](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L13): W291 trailing whitespace [Line 14:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L14): W293 blank line contains whitespace [Line 15:47](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L15): W291 trailing whitespace [Line 16:24](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L16): W291 trailing whitespace [Line 17:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L17): W291 trailing whitespace [Line 18:20](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L18): W291 trailing whitespace [Line 19:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L19): W293 blank line contains whitespace [Line 20:29](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L20): W291 trailing whitespace [Line 21:21](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L21): W291 trailing whitespace [Line 22:15](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): E231 missing whitespace after ',' [Line 22:43](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): E231 missing whitespace after ',' [Line 22:50](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): E261 at least two spaces before inline comment [Line 22:57](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): W291 trailing whitespace [Line 23:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L23): W293 blank line contains whitespace [Line 24:28](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L24): W291 trailing whitespace [Line 25:33](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L25): W291 trailing whitespace [Line 26:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L26): W293 blank line contains whitespace [Line 27:51](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L27): W291 trailing whitespace [Line 28:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L28): E302 expected 2 blank lines, found 1 [Line 28:19](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L28): W291 trailing whitespace [Line 29:17](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L29): W291 trailing whitespace [Line 30:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L30): W293 blank line contains whitespace [Line 31:23](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L31): W291 trailing whitespace [Line 32:38](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L32): W291 trailing whitespace [Line 33:27](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L33): W291 trailing whitespace [Line 34:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L34): W293 blank line contains whitespace [Line 35:34](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L35): W291 trailing whitespace [Line 36:32](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L36): W291 trailing whitespace [Line 37:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L37): E261 at least two spaces before inline comment [Line 37:47](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L37): W291 trailing whitespace [Line 38:27](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L38): W291 trailing whitespace [Line 39:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L39): W293 blank line contains whitespace [Line 40:28](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L40): W291 trailing whitespace [Line 41:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L41): E305 expected 2 blank lines after class or function definition, found 1 [Line 41:8](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L41): E201 whitespace after '[' [Line 41:29](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L41): W291 trailing whitespace [Line 42:14](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L42): W291 trailing whitespace [Line 43:13](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L43): W291 trailing whitespace [Line 44:6](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L44): E211 whitespace before '(' [Line 44:26](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L44): W291 trailing whitespace [Line 45:19](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L45): W291 trailing whitespace [Line 46:10](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L46): E211 whitespace before '(' [Line 46:18](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L46): E225 missing whitespace around operator [Line 46:26](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L46): W291 trailing whitespace

pep8speaks avatar Oct 16 '20 07:10 pep8speaks