|  | 
|  | 
| вернуться в форум | And what about solving this problem without any arrays? I solved this problem on Java.Memory < 1 М .Time was about 0.8 c. Without any arays!!!
 Are your can? =).
 Thanks to Fyodor Menshikov.
 He was rigth about limitation.
Re: And what about solving this problem without any arrays? Using recursive procedure like topological sorting.Re: And what about solving this problem without any arrays? Recursion implicitly uses array (stack), so used memory will be the same.
 Edited by author 13.01.2009 23:26
Re: And what about solving this problem without any arrays? And how?Re: And what about solving this problem without any arrays? And how? Think.  Look at memory compsumption of first solutions of the problem.Re: And what about solving this problem without any arrays? if(A+B > 9).....
 Console.Write(last+1);
 if(A+B == 9)
 count++;
 ......
 if(A+B < 9)
 Console.Write(last);
 
 but it's slow,so it's not a good way
 | 
 | 
|