Someone can give me a hit for problem IMPER in SPOJ?

Правка en1, от PintinhoPreto, 2015-12-09 02:26:54

I try it using a BFS. Starting in a node with degree 1, setting the node as visited and its neighbors, adding in the queue the neighbors of neighbors of node. But, i was received only wrong answer with this strategy :(

Link for the problem: http://www.spoj.com/problems/IMPER/

sorry for my bad english.

Теги spoj, graph, need help, problem

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский PintinhoPreto 2015-12-09 02:26:54 360 Initial revision (published)