Chess Piece Jumping Game

Given an N*N matrix representing a chessboard, which contains one player's piece marked as 'S' and several enemy pieces marked as 'E'. The player's piece can jump over enemy pieces to the upper right ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: