Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 254 Bytes
#Breadth-first search
#import sys
#sys.setrecursionlimit(20)
class Stumps(list):
def __del__(self):
newHeads = Stumps()
for head in self:
print head
newHeads.append(head + "l")
newHeads.append(head + "r")
Stumps().append("")