Word Search Along Straight Lines in Eight Directions

Asked at Uber · Coding Questions · Difficulty: Medium · Last asked May 12, 2026

You are given a rectangular grid of characters and a target word. Decide whether the word can be read along a single straight line in the grid. The line may run in any of the eight directions, and it may not turn.

Loading the problem…