Shortest Path to Collect All Coins
On a 100x100 grid, there are 10 coins distributed in various cells. Each cell is either empty or contains a coin. Starting from a given starting point, your task is to find and return the shortest pat...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
