Loading

摘要: 【LBLD】双指针技巧秒杀七道数组题目 快慢指针技巧 class Solution { public: int removeDuplicates(vector<int>& nums) { int fast = 0; int slow = 0; while (fast < nums.size()) { 阅读全文
posted @ 2023-03-31 11:00 杨谖之 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 【LBLD】如何判断回文链表 判断回文单链表 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) 阅读全文
posted @ 2023-03-31 09:22 杨谖之 阅读(12) 评论(0) 推荐(0) 编辑