摘要:
class Solution { public: ListNode* findKthToTail(ListNode* head, int k) { auto i=head; auto j=head; int len=0; for (; len < k&&j!=NULL; len ++ ) j=j-> 阅读全文
posted @ 2023-03-23 16:22
穿过雾的阴霾
阅读(16)
评论(0)
推荐(0)
摘要:
class Solution { public: int firstMissingPositive(vector<int>& nums) { int n=nums.size(); for(int i=0;i<n;i++) { while(nums[i]>0&&nums[i]<=n&&nums[i]! 阅读全文
posted @ 2023-03-23 16:01
穿过雾的阴霾
阅读(13)
评论(0)
推荐(0)