Note: In mathematics, the lexicographic or lexicographical order (also known as lexical order, dictionary order, alphabetical order or lexicographic(al) product) is a generalization of the way words are alphabetically ordered based on the alphabetical order of their component letters.
Expected Output:
Original string: zxywooxz
After removing duplicate characters: xywoz
Code:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer