Reported interview periodJan 2026–Sep 2026
Shortest route through directional cells
Compute the fewest orthogonal moves from the start to the exit of a grid containing cells that can only be entered while travelling in one particular direction.
Practice focusRequirements - Line 1 gives rows cols . The next rows lines each contain exactly cols characters. - is a wall, S is the start, and E is the exit. - can be entered only by moving right into it. < can be entered only by moving left into it. - The restriction applies when entering a directional cell. Once inside, the walker may leave in any direction. - S , E , and ordinary open cells accept entry from any side. - Each move goes one cell up, down, left, or right and costs one step.…