#Need help figuring out a bug in my code (Binary Search trees)

27 messages Β· Page 1 of 1 (latest)

raw anvil
#

i have a file of cases to test my implementation of a binary search tree but its causing an infinite loop I believe at test 10 which adds a large amount of records to the dictionary. been looking at it for a while and I'm honestly stuck anybody with a fresh pair of eyes wanna take a look I'd appreciate it.

upper pantherBOT
#

βŒ› This post has been reserved for your question.

Hey @raw anvil! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

raw anvil
#

i can send the files to anyone willing to help, thanks in advance

upper pantherBOT
upper pantherBOT
#

πŸ’€ Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

raw anvil
#

anybody with agood understanding of this able to help?

#

able to add a few items to the tree but if I try to add too many the program doesnt end and stops adding more items

fresh epoch
#

Can you post your code?

raw anvil
#

testDict contains main

#

all files are in the same src folder

#

testDict is failing at some point before test10 when it adds a large amount of records line 163

#

keeps throwing dictionary exception i think

#

but program doesnt terminate or continue past that loop

#

if someone could let me know what to do so that tests 10-16 pass also id be so grateful been stuck for days

raw anvil
#

sorry onemore file

#

i believe thats everything

fresh epoch
#

I'm sorry, but there will be no one that is willing to go through all of that code to help you. You need to share as less code as possible. Try to locate where the bug is approximately