-
Notifications
You must be signed in to change notification settings - Fork 269
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
TreeNode check added for heap.py #135
Conversation
Codecov Report
@@ Coverage Diff @@
## master #135 +/- ##
=============================================
+ Coverage 98.173% 98.176% +0.002%
=============================================
Files 21 21
Lines 1588 1590 +2
=============================================
+ Hits 1559 1561 +2
Misses 29 29
|
l = max_heap.heap[0].left | ||
l = max_heap.heap[0].right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might have accidentally removed them. It was showing a warning if I remember correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the first line can be removed safely, though do it in a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable is never being used, so idk whats the point of having it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, feel free to remove it in a separate PR.
Added new line at the end Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Brief description of what is fixed or changed
Doc string of heap.py is updated.
relevant test added.
Other comments
Previous PR was messed up, this one should work