上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页
摘要: 利用快慢指针来实现,快指针先执行头节点的第n个节点,慢指针指向头节点 然后快慢指针一起移动,当快指针指向尾节点时,慢指针的下一个节点就是要移除的节点 代码实现: public class Client { public static void main(String[] args) { ListNo 阅读全文
posted @ 2020-04-19 14:56 冬马党 阅读(454) 评论(0) 推荐(0)
摘要: public class Client { public static void main(String[] args) { int[] height = {2,8,3,4}; int area = maxContainer(height); System.out.println(area); } 阅读全文
posted @ 2020-04-19 12:33 冬马党 阅读(554) 评论(0) 推荐(0)
摘要: public class Client { public static void main(String[] args) { int i = 1625262; boolean palindromeNum = isPalindromeNum(i); System.out.println(palindr 阅读全文
posted @ 2020-04-19 10:45 冬马党 阅读(226) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { int i = 9876; int num = caleReverseNum(i); System.out.println(num); } /** * 时间复杂度为n的位数 */ static int caleReve 阅读全文
posted @ 2020-04-19 10:10 冬马党 阅读(161) 评论(0) 推荐(0)
摘要: import java.util.*; public class Client { public static void main(String[] args) { String str = "abcdefghijk"; char[][] chars = strArr(str, 4); for (c 阅读全文
posted @ 2020-04-19 09:43 冬马党 阅读(302) 评论(0) 推荐(0)
摘要: 思路: 利用左右指针和map数据结构 求左右指针的最大间隔 遍历字符数组,如果在map中不存在,则右指针右移,并求最大长度 如果在map中存在,则左指针右移 import java.util.*; public class Client { public static void main(Strin 阅读全文
posted @ 2020-04-19 08:58 冬马党 阅读(379) 评论(0) 推荐(0)
摘要: org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvicefeign 拦截器feign.RequestInterceptor 阅读全文
posted @ 2019-12-13 08:21 冬马党 阅读(1135) 评论(0) 推荐(0)
摘要: my.ini 阅读全文
posted @ 2019-10-20 19:17 冬马党 阅读(18421) 评论(0) 推荐(2)
摘要: 因为公司需要利用poi 进行自定义的导出,乘此了解一下poi的一些常用操作 client 端 工具类 实体转换工具类 阅读全文
posted @ 2019-09-28 16:33 冬马党 阅读(1168) 评论(0) 推荐(0)
摘要: String.format("%04d", 2) 输出 0002 阅读全文
posted @ 2019-03-01 08:12 冬马党 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页