随笔分类 -  leetcode小白成长记

当然是刷题总结啦
摘要://删除指定value节点 class Solution { public: ListNode* removeElements(ListNode* head, int val) { //单独处理head while(head != NULL && head->val == val){ ListNod 阅读全文
posted @ 2024-04-02 09:27 main(void) 阅读(24) 评论(0) 推荐(0)
摘要:// @before-stub-for-debug-begin #include <vector> #include <string> #include "commoncppproblem27.h" using namespace std; // @before-stub-for-debug-end 阅读全文
posted @ 2024-02-23 19:30 main(void) 阅读(30) 评论(0) 推荐(0)
摘要:* * @lc app=leetcode.cn id=704 lang=cpp * * [704] 二分查找 */ // @lc code=start class Solution { public: int search(vector<int>& nums, int target) { int l 阅读全文
posted @ 2024-02-22 17:12 main(void) 阅读(26) 评论(0) 推荐(0)

.c_ad_block { display: none !important; } #ad_t2{ display: none !important; }