|
|
back to boardpls pls pls pls pls help... how to store so many numbers for the range 1 to 2^31-1 even O(n) soln won't work i.e even a single loop will take more time if we want to use f(n,m) = abs(f(1,n)-f(1,m)) we need to store 2^31 values... how is it possible to store so many numbers!!!!
Re: pls pls pls pls pls help... how to store so many numbers You don't need to store so many numbers. Tey to find another way (try to see how change length between fixed nodes). f(n,m) = abs(f(1,n) - f(1,m)) - it's ok. Re: pls pls pls pls pls help... how to store so many numbers ok thanx .. will try it |
|
|