Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

D-K-E
Copy link
Owner

@D-K-E D-K-E commented Sep 23, 2018

self.heap.append simply appends to the end of the self.heap.
Since self.heap is just a python list.
self.append calls the append method of the class instance, effectively putting the item in its proper place.

`self.heap.append` simply appends to the end of the `self.heap` 
Since `self.heap` is just a python list. 
`self.append` calls the append method of the class instance, effectively putting the item in its proper place.
@D-K-E D-K-E merged commit 2075988 into master Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant