Why Is My Binary Search Tree Code Not Working?

0
0
Asked By CuriousCat42 On

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

Answered By LogicalThinker On

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!

Answered By TechWiz87 On

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.

CodeNinja24 -

What exactly is pastebin?

Answered By DebuggingDynamo On

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!

CuriousCat42 -

I get that, but unfortunately, my tests are just failing without any output. I'm not even sure where to start.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.