Also reported as Shortest Way to Form String · LeetCode 1055
Pinterest coding question, reconstructed from 7 candidate reports (November 2025 to September 2026). Candidates reported 2 follow-ups. The write-up includes a Python solution that passes 7 test cases.