← Questions

Collect the characters along a path in a grid

0
TeslaCodingLast asked Aug 2026

A 2D grid has one path that starts at (0, 0); path cells hold either * or a letter, and other cells are empty. Follow the path and return the letters on it, in order, as a string. Follow-up: the path may branch; return the string for every path.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding