lrahul7's blog

By lrahul7, 10 years ago, In English

Hii, I've tried to solve a problem on SPOJ. The link to the problem is http://www.spoj.com/problems/TRAFFICN/ I have got the algorithm, but my code gives WA upon submitting. Please check what I'm missing. Here's my code : http://ideone.com/2EK3e8

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

Got my mistake! Didn't initialize source distance to 0 before going into the while loop.