Given a 2D grid of size m x n, determine if a starting position S(P, Q) can reach a target position R(U, V) by taking jumps of exactly X units in the horizontal or vertical direction, and find the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.