Straight-Line Word Search

Given a 2D grid board of uppercase English letters and a target string word, determine whether the word can be found in the grid.

A search must:

  • start from any cell;
  • choose one fixed directi...

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: