Saif_Qaher's blog

By Saif_Qaher, 12 years ago, In English

here it is

How to solve it with Disjoint Data Structure .

thanks .

UPDATE : any help , i can't get the idea.

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
12 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why do you need disjoint set algorithm for the problem? The constraints are incredibly small so you could just simulate the process, year by year?