← Questions

Collect the characters along a path in a grid

0
TeslaCodingLast asked Aug 2026

A coding interview question asked in Tesla's second technical round, last asked Aug 2026. It tests dfs, grids and backtracking.

A 2D grid of characters contains one path. Path cells hold either or a letter; every other cell is a space.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

dfs · grids · backtracking

Your code and the AI tutor open when you unlock this question.