|
|
back to boardFast solution For solving this problem I used advanced bipartite graph theory. But it work slowly(about 0.6sec). Very interesting how solve more quickly. Please, give me some hints.(My e-mail: scarlet.flower@list.ru) Re: Fast solution Maximum matchings in bipartite graph is almost enough to solve it + some "magic" :) Maybe maximum flow algos' works better here... My complexity was O(V*E), 0.3sec Re: Fast solution Just gredy. Re: Fast solution Also, O(NlogN) solution exists |
|
|