Premium Content
Sign in to see the full question
Get access to the full problem, solutions, follow-up questions, and discussion.
Get access to the full problem, solutions, follow-up questions, and discussion.
You are given a 2D grid of characters representing a board. Each cell is one of:
'W' — a walk cell. From here the player moves 1 step to any of the four orthogonal neighbours.'J' — a...