Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change PriorityQueue expansion #2

Merged
merged 1 commit into from Sep 23, 2018
Merged

Change PriorityQueue expansion #2

merged 1 commit into from Sep 23, 2018

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
1 participant