摘要:
双指针 class Solution { public void moveZeroes(int[] nums) { int j=0; for(int i=0;i<nums.length;i++){ if(nums[i]!=0){ int tmp=nums[i]; nums[i]=nums[j]; n 阅读全文
posted @ 2025-12-28 11:21
Huangyien
阅读(21)
评论(0)
推荐(0)
摘要:
class Solution { public int longestConsecutive(int[] nums) { Set<Integer>set=new HashSet<>(); for(int num:nums){ set.add(num); } int ans=0; for(int x: 阅读全文
posted @ 2025-12-28 10:50
Huangyien
阅读(2)
评论(0)
推荐(0)

浙公网安备 33010602011771号