摘要: https://leetcode.cn/problems/merge-intervals/ 还不会,涉及到集合知识点,见笑了。 阅读全文
posted @ 2022-07-27 14:55 SherryYuan 阅读(15) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/search-insert-position/ class Solution { public int searchInsert(int[] nums, int target) { for(int i=0;i<nums.length;i++) 阅读全文
posted @ 2022-07-27 14:46 SherryYuan 阅读(23) 评论(0) 推荐(0)
摘要: 1 阅读全文
posted @ 2022-07-27 14:26 SherryYuan 阅读(127) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/find-the-middle-index-in-array/ class Solution { public int pivotIndex(int[] nums) { int sum=0; for(int i=0; i<nums.lengt 阅读全文
posted @ 2022-07-27 10:19 SherryYuan 阅读(16) 评论(0) 推荐(0)