Can anybody give me some hints on O(N^3) of this problem??

Or less than O(N^3), thanks ^o^

Re: Can anybody give me some hints on O(N^3) of this problem??

you can make it on O(n^2)

I know several O(N^3) algos, but no O(N^2). I don't think O(N^2) is possible (-)

Re: I know several O(N^3) algos, but no O(N^2). I don't think O(N^2) is possible (-)

what's the O(N^3) algo?