Also reported as Design Search Autocomplete System · LeetCode 642
Pinterest coding question, reconstructed from 4 candidate reports (November 2025 to August 2026). Candidates reported 2 follow-ups. The write-up includes a Python solution that passes 8 test cases.