Search Word in 2D Array

Easypaypal

Given a 2D character array and a string, determine if the string can be formed by characters from a starting point in the 2D array moving horizontally, vertically, or diagonally, without reusing chara...

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: