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?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.