摘要: 1.较大分组的位置(相同字符串的下标集合长度>=3) public static List<List<Integer>> largeGroupPositions(String s){ List<List<Integer>> res = new ArrayList<>(); //相同字符串左边边界 i 阅读全文
posted @ 2021-01-07 10:56 zydjjcpdszylddpll 阅读(80) 评论(0) 推荐(0)
摘要: 1.整数反转 /** * 整数反转 * @param x * @return */ public static int reverse(int x) { long res = 0; while (x != 0) { res = res * 10 + x % 10; x /= 10; } return 阅读全文
posted @ 2021-01-07 10:53 zydjjcpdszylddpll 阅读(134) 评论(0) 推荐(0)