Cycling City

Правка en1, от I_Love_Michelle_Shen, 2015-06-26 02:02:52

Hello all,

Recently, I tried solving problem Cycling City.

I've been trying for hours to debug my code (below) to make it pass test #12 (as you can see from my submissions :P), but I can't seem to find the error. It'd be great if anyone could help me find the error; the code is quite well commented. The problem seems to be in either the "cyc" method or the articulation point detection, all of which is commented. Look particularly at the comments in the "solve" method; I outlined what I found while attempting to debug.

Actually, I think there's not much need to look at create and find methods, as I tested them by checking on a SPOJ problems. However, other commented methods could contain an error that I'm not sure of.

http://pastebin.com/xbnfPC9q

Thanks in advance, Alex_Gu

Теги debugging

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский I_Love_Michelle_Shen 2015-06-26 02:02:52 863 Initial revision (published)