ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1069. Prufer Code

How to solve this fast?
Posted by Evil Cheater 14 Jul 2003 10:28
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?
Posted by GodZilla 14 Jul 2003 12:03
> 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?
Posted by Evil Cheater 15 Jul 2003 09:23
Thanks, but what's hesh function?