Quick Overview

Determine whether a Chinese-chess horse can reach a target on a 10-by-9 board when obstacles block both destinations and the horse's leg squares. The exercise tests finite-state graph traversal, precise move generation, board boundaries, visited-state handling, and zero-move reachability.

Determine Reachability for a Chinese-Chess Horse with Blocked Legs

Company: eBay

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Overview: Determine whether a Chinese-chess horse can reach a target on a 10-by-9 board when obstacles block both destinations and the horse's leg squares. The exercise tests finite-state graph traversal, precise move generation, board boundaries, visited-state handling, and zero-move reachability.

Loading…