Pergunta de entrevista da empresa TikTok

Backtracking and dynamic programming questions.