2024年4月17日

摘要: public ListNode getIntersectionNode(ListNode headA, ListNode headB) { ListNode p1=headA; ListNode p2=headB; while(p1!=p2){ if(p1==null){ p1=headB; }el 阅读全文
posted @ 2024-04-17 15:55 豆豆只会增删改查 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: 长度最小: 滑动窗口 public int minSubArrayLen(int target, int[] nums) { int start=0; int end=0; int res=Integer.MAX_VALUE; int sum=0; while(end<nums.length){ s 阅读全文
posted @ 2024-04-17 12:22 豆豆只会增删改查 阅读(2) 评论(0) 推荐(0) 编辑