No, it isn't. It is not inmediately clear how to deal with zero-length cycles.What reference do you need? Isn't slightly modified Dijkstra (with counting the k-th shortest path to all the verticles) good enough?
10740 - Not the Best
Moderator: Board moderators
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
10740 "Not The Best" ...Please Inputs!!!
I removed my code :$, It has been long enogh here haha, enjoy the problem ..
Last edited by chuzpa on Tue Oct 20, 2009 11:37 pm, edited 1 time in total.
hi there...
Hi nobody answered me ... :s hahaha but it is accepted now ....
-
- New poster
- Posts: 22
- Joined: Wed May 21, 2014 10:16 am
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 10740 - Not the Best
Try using a modified Dijkstra's algorithm.
Check input and AC output for thousands of problems on uDebug!