public String maxLexicographical1(String num) { int n = num.length(), i = 0; char[] chars = num.toCharArray(); while (i < n && chars[i] == '1') i++; while (i < ...