# LC6185 Remove Duplicate Letters **Idea.** stack + last index + seen. **Checklist** - Clarify constraints and edge cases first - Name the pattern (two pointers / DP / graph / binary search) - Walk one example end-to-end before coding - State time/space; watch off-by-one *Disclosure: I help build [AI job interview answers in real time](https://www.linkjob.ai/coding-interview-copilot/) — an interview prep copilot. Notes are my own study notes.*