By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,873 Members | 651 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,873 IT Pros & Developers. It's quick & easy.

Python binary tree not shifting child nodes upwards

P: 1
So I have this code: https://pastebin.com/AzYEkgmr

My current problem is when the 'else' statement on deleteNode() runs, it doesn't shift all the nodes upwards and instead leaves the node which is meant to replace a further up one there.

Anyone got any ideas. I am using python 3.8.2 with pycharm community 2020.2.2
3 Weeks Ago #1
Share this Question
Share on Google+
1 Reply

Post your reply

Sign in to post your reply or Sign up for a free account.