要减肥巨人

文章
4
资源
0
加入时间
3年1月7天

LeetCode-Algorithms-[Easy]1065. 字符串的索引对[双百解法]

1065. 字符串的索引对我的LeetCode题解1.因为不知道返回的int[] 到底要多大,所以需要一个容器先存储临时的结果2.遍历计算,使用indexof函数3.装入结果数组res4.对res进行排序目前是个Java的双百解法 public int[][] indexPairs(String text, String[] words) { Stack&...

It was either not specified and/or could not be found for the javaType (java.time.LocalDateTime)

总所周知,localdatetime是jdk8 推出的关于日期计算非常方便地一个类,一旦开始用上就欲罢不能。但是在使用的时候,坑还是蛮多的。一、mybatis与LocalDatetime如果直接将实体里面所有的Date类型换成LocalDatetime之后,运行程序是会报异常的。此时,可以加入以下依赖:<dependency><groupId>org.myb...