Re: why it is like stop running after a 3 seconds

2016-06-09 Thread John Gordon
In <35cd5920-1fbb-441f-9fc6-2f3f2e5f8...@googlegroups.com> Ho Yeung Lee writes: > i write a program, it is like forever loop > but i only restrict it to run 2 level recursively, I don't think the restriction is working. There is "if deep > 0:" at the top of the function, but the recursive cal

why it is like stop running after a 3 seconds

2016-06-09 Thread Ho Yeung Lee
i write a program, it is like forever loop but i only restrict it to run 2 level recursively, why it is slow, where is the problem? M1 = {} M2 = {} M3 = {} M4 = {} M5 = {} V6 = {} M1['00']=0 M1['01']=1 M1['02']=1 M1['10']=2 M1['11']=2 M1['12']=1 M1['20']=1 M1['21']=2 M1['22']=1 M2['00']=0 M2['0