New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Roblox
Coding Question
AI Insights
Quick Summary
Filter out any string that acts as a strict prefix for another string in the list.
Preserve the original relative ordering of the remaining strings.
Optimize prefix checks to avoid O(N²) pairwise comparisons.
What This Tests
Prefix tree (Trie) construction and traversal
Efficient string relationship detection
Data structure selection for hierarchical data
Order-preserving list filtering
Common Patterns
Trie
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected