Bot Saves Princess – HackerRank Problem Solution
Question: Princess Peach is trapped in one of the four corners of a square grid. You are in the center of the grid and can move one step at a time in any of the four directions. Can you rescue the princess? Input format The first line contains an odd integer N (< 100) denoting the size of the grid. This is followed by an … Continue reading Bot Saves Princess – HackerRank Problem Solution