Hi all,
when I try
for d in DyckWords(3):
print "--------------"
t = d.to_binary_tree()
s = t.left_rotate()
print ascii_art(t)
print ascii_art(s)
I get "IndexError: list index out of range".
What am I doing wrong?
1 | initial version |
Hi all,
when I try
for d in DyckWords(3):
print "--------------"
t = d.to_binary_tree()
s = t.left_rotate()
print ascii_art(t)
print ascii_art(s)
I get "IndexError: list index out of range".
What am I doing wrong?