fix bug: edge case of avl delete#4001
fix bug: edge case of avl delete#4001Leo-LiHao wants to merge 3 commits intoTheAlgorithms:masterfrom
Conversation
Pull Request Report@Leo-LiHao Hello! I'm a bot made to check all the pull request Python files. First of all, I want to say thank you for your time and interest in this project and for opening a pull request. There seems to be missing requirements in some of the Python files submitted in this pull request. Please read through the report and make the necessary changes. You can take a look at the relevant links provided after the report. What are node paths? 🔽
Following functions require tests [
|
|
Possibly could you make the changes that bot said while also fixing the bug? |
|
@algorithms-keeper review |
|
@Leo-LiHao Hey can you describe as to what the bug is? |
Yes, I will add a test case later. Could you check my another PR? #4028 (comment) |
|
@dhruvmanila I added two test cases (one with 15 values, one with 1000 values), and here's the output of original code for 15 values after deleting 7 values (8 values left in the tree now): after deleting value 13 It is not an AVL tree (look at the subtree of 2). You could check the modified code and new test cases for more details. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions! |
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.