Word Search

Try to solve the Word Search problem.

Statement

Given an m×nm \times n 2D grid of characters and word as a string, we need to determine if the word can be constructed from letters of sequentially adjacent cells. The cells are considered sequentially adjacent when they are neighbors to each other either horizontally or vertically. The function should return TRUE if the word can be constructed and FALSE otherwise.

Constraints:

  • m
...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy