Hi,
I'm trying to solve spoj.com/problems/AMR11F/.
My first approach was to use dikjstra and represent every floor as a node. But the problem with that is number of floors come out to be 10^8 and that'll go out of memory for sure.
I'm still baffled on how to approach the problem with less number of nodes.
Can anyone please shed some light on this matter ?
Thanks,
Umair