Thank you brianfry713, for you reply.
WIth your help I solved this problem using c++11 in 149ms but java just isn't fast enough.
Search found 2 matches
- Tue Oct 28, 2014 3:01 am
- Forum: Volume 117 (11700-11799)
- Topic: 11792 - Krochanska is Here!
- Replies: 4
- Views: 3514
- Thu Oct 23, 2014 9:50 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11792 - Krochanska is Here!
- Replies: 4
- Views: 3514
Re: 11792 - Krochanska is Here!
Hi there,
does anyone know more efficient algorithm for solving this other than running bfs numOfImportantStations times.
While that may work in c/c++, it produces TLE in java .
I would appreciate your help.
This is my first post on this forum
does anyone know more efficient algorithm for solving this other than running bfs numOfImportantStations times.
While that may work in c/c++, it produces TLE in java .
I would appreciate your help.
This is my first post on this forum
