import java.util.Scanner; public class Solution { public static String getSmallestAndLargest(String s, int k) { java.util.ArrayList lis = new java.util.ArrayList ...
For example, ball < cat, dog < dorm, Happy < happy, Zoo < ball. A substring of a string is a contiguous block of characters in the string. For example, the substrings of abc are a, b, c, ab, bc, and ...