- 博客(52)
- 收藏
- 关注
原创 LeetCode 352 将数据流变为多个不相交区间
class SummaryRanges { List<List<Integer>> list; public SummaryRanges() { list = new ArrayList<List<Integer>>(); } public void addNum(int val) { if(list.isEmpty()) { List<Integer> t.
2022-05-29 15:44:27
170
原创 LeetCode 第42题 接雨水
LeetCode 42题class Solution { public int trap(int[] height) { if(null == height || height.length < 3) { return 0; } int len = height.length; int result = 0; int left = 0; int right = 0;
2022-01-24 21:19:01
621
原创 LeetCode 第30题 串联所有单词的子串
LeetCode 30题class Solution { public static List<Integer> findSubstring(String s, String[] words) { List<Integer> resList = new ArrayList<>(); int wordLength = words[0].length(); Map<String, Integer> word
2022-01-24 21:16:14
440
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人