โ† HCLTech questions
CodingMedium

Check if word exists in a 2D grid

Filed under HCLTech

The question

Given a 2D grid of characters and a target word, determine if the word can be constructed from sequentially adjacent cells. Handle edge cases such as empty matrices and single-character words while optimizing time and space.

No write-up yet. Related questions below have one.

Related HCLTech questions

Collected from public candidate posts and coding forums. Updated Nov 2026.