Given an array arr[] consisting of N strings and a string S if size M, the task is to find the lexicographically smallest string consisting… Read More
The post Lexicographically smallest string with given string as prefix appeared first on GeeksforGeeks.