You are viewing a single comment's thread. Return to all comments →
Not sure how you implement your solution ... maybe you calculate shortest distances.. not shortest turns.
check this link.. He (knock_out) mentioned how shortest turn can be implmented by BSF ..
https://www.hackerrank.com/challenges/castle-on-the-grid/forum/comments/107995
Seems like cookies are disabled on this browser, please enable them to open this website
Castle on the Grid
You are viewing a single comment's thread. Return to all comments →
Not sure how you implement your solution ... maybe you calculate shortest distances.. not shortest turns.
check this link.. He (knock_out) mentioned how shortest turn can be implmented by BSF ..
https://www.hackerrank.com/challenges/castle-on-the-grid/forum/comments/107995