InterviewSolution
Saved Bookmarks
| 1. |
How to find the lexographical smallest name in c programming |
|
Answer» # Given a string which contains only lowercase letters, remove duplicate# letters so that every letter appear once and only once. You must MAKE# sure your result is the smallest in lexicographical order among all possible results.## Example:# Given "bcabc"# Return "abc"## Given "cbacdcbc"# Return "acdb"Explanation:The smallest lexicographical order is an order RELATION where string s is SMALLER than t, given the first CHARACTER of s (S1) is smaller than the first character of t (t1), or in case they are equivalent, the second character, etc.pls mark me as brainliest |
|