Collect the characters along a path in a grid

0
Remix

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.

TeslaCodingLast asked Aug 2026
No answer yet. Write the first one; the best answer gets endorsed.