Hey everyone, I'm struggling to understand why my binary search tree code isn't functioning correctly. I've tried posting the errors I encountered, but the site wouldn't let me, so I can't provide those details. Here's a snippet of the code I'm working with. I'm hoping someone could help debug or suggest what might be going wrong. Thanks!
3 Answers
Definitely agree! Also, make sure you've checked all the methods in your class; sometimes, the issue might be in the logic of how they interact. You can also use print statements to check the flow and see where things go off track!
You might want to try using pastebin to share the error messages next time! It's really handy for that. Also, can you clarify if it's a specific test case that's failing or if all tests are giving you trouble? That would help us offer better assistance.
It's important to provide a bit more detail than just 'it's not working.' Try to outline when you run your code what you expect to happen and what the actual outcome is. This way, folks can help you troubleshoot your issues more effectively!
I get that, but unfortunately, my tests are just failing without any output. I'm not even sure where to start.
What exactly is pastebin?