BackmediumUncategorized uncategorized medium

Shortest Path in Constrained Grid Solution

Problem Statement

You are given a grid with 27 nodes, where each node has a unique encryption key. The goal is to find the shortest path to the central node, given that you can move only 9 steps in any direction and must follow one of 18 predefined possible paths.

Live Compiler
Loading...
Test Cases & Output
🔒 Sign up to run your code

🚀 Practice this problem

Run code, get AI hints & track streak

Sign Up Free