Collect Characters Along Grid Paths

Given a 2D character grid, start at the top-left cell (0, 0). A cell contains either a path marker '*' or a regular character.

In the initial version, there is exactly one valid path starting fro...

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: