|
|
back to boardWhy TL5 on C++? Posted by Mary 25 Dec 2024 19:14 Im using BFS to find shortest way from S to F, BFS to count dists, BFS to count probability on shortest ways. I tried c++ vectors and arrays, both are getting TLe Maybe cause is long double values (three BFS can pass in 1 second). How can I fix it? Maybe Dijkstra on two parameters? |
|
|