随笔分类 - leetcode小白成长记
当然是刷题总结啦
摘要://删除指定value节点 class Solution { public: ListNode* removeElements(ListNode* head, int val) { //单独处理head while(head != NULL && head->val == val){ ListNod
阅读全文
摘要:// @before-stub-for-debug-begin #include <vector> #include <string> #include "commoncppproblem27.h" using namespace std; // @before-stub-for-debug-end
阅读全文
摘要:* * @lc app=leetcode.cn id=704 lang=cpp * * [704] 二分查找 */ // @lc code=start class Solution { public: int search(vector<int>& nums, int target) { int l
阅读全文

浙公网安备 33010602011771号