Skip to content
Snippets Groups Projects
Commit a07733ed authored by Christopher Bohn's avatar Christopher Bohn :thinking:
Browse files

Updated StackBuster so less time is wasted with building huge strings.

parent b8ca5e92
No related branches found
No related tags found
No related merge requests found
def non_terminating_recursion(a_string, instance_number):
a_longer_string = "{} {}".format(a_string, a_string)
# print( "Activation instance: {:d}".format(instance_number))
a_longer_string = f' {a_string} '
print(f'Activation instance: {instance_number}')
return non_terminating_recursion(a_longer_string, instance_number + 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment