Microsoft OA Lexicographically Smallest String
Microsoft Online Assessment Lexicographically Smallest String Lexicographically smallest string formed by removing at most one character. Also See: Microsoft Online Assessment Questions and Solution Example 1: Input: abczd Output: abcd Solution Program C++: By definition of lexicographical order each next string is largerthan the previous one А < АА < ААА < АAB < ААC < АB … Read more