Search⌘ K
AI Features

Remove Duplicate Letters

Remove Duplicate Letters asks you to keep one copy of every character in a string while preserving the smallest possible lexicographical order, then return that string.

Statement

You are given a string, s, consisting only of lowercase English letters. Your task is ...