recursion-tree-visualizer
recursion-tree-visualizer copied to clipboard
Global Variables Not Working.
The input field for global variables is not working. Pease fix it.
Can you give some example?
The input fields are not responding.
I've got the same issue when I set a global variable and increment it. Please fix it,
Example: global variables:
nums = [1 ,2] i = 0
def fn():
if i >= len(nums):
return
i += 1
fn()
fn()
i -= 1
For solving the problem I use arrays for example
global variables:
nums = [1 ,2] count = []
def fn(n):
if len(count) >= len(nums):
return
count.append(None)
fn(n)
fn(n)
count.pop()