Remove Duplicate Letters Preserving First Occurrence Order
Asked at Microsoft · Coding & Leetcode-style Questions · Difficulty: Easy
Given a string, remove duplicate letters so that every letter appears only once. You need to return a new string with the characters in the order they first appear in the original string.
Loading the problem…
More Microsoft interview questions
- LLM conceptual questions
- Transformer Roofline and FP32→FP16 Drill
- Tiny Next-Token Prediction Model (PyTorch Fill-In)
- DNA Shotgun Sequencing: Chain and Eulerian Path Reconstruction
- Design Search Autocomplete / Typeahead
- Design a Chatbot Personalization / Memory System