We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #83: Path sum: four ways
Project Euler #83: Path sum: four ways
Sort by
recency
|
13 Discussions
|
Please Login in order to post a comment
C++
for C++ remove all log fector of searching in map mean's do not use map use 2d array of list of pair, int i got AC using
use stl set c++ as priority queue.
Can't be solvable by DP but by Dijkstra. My solution:
I got TLE for using
int
instead oflong long
.Anyway learned a lot of tricks trying to solve this problem.
@shashank21j why this solution give wrong answer for test cases 4 5 6 8: