|
|
back to boardHow to solve this fast? Hi! I already solved this problem (on paper), but in O(n^2). How can I solve it in O(n) or O(n logn)? Also, what are heaps? Thanks in advance! Re: How to solve this fast? > Hi! > > I already solved this problem (on paper), but in O(n^2). How can I > solve it in O(n) or O(n logn)? Also, what are heaps? > > Thanks in advance! Use Hesh Function !!! Re: How to solve this fast? Thanks, but what's hesh function? |
|
|