LeetCode: 316-Remove Duplicate Letters 解題紀錄
Last Updated on 2022-03-18 by Clay
題目
Given a string s
, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicographical order among all possible results.