Need help understanding a programming challenge

Er0

I have already checked others solutions but i am unable to figure out, how they are solving this problem. https://www.hackerrank.com/challenges/castle-on-the-grid

And if anyone can help suggest where i should study from to begin to comprehend such problems,that would be great.

Mattias Åslund

What you link to is a classic shortest-path problem anf those are typically solved with breadth-first algorithms.

You should read up on Dijkstras bfs and A*.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related