![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
寻风度陌
这个作者很懒,什么都没留下…
展开
-
Leetcode 203. 移除链表元素
给你一个链表的头节点 head 和一个整数 val ,请你删除链表中所有满足 Node.val == val 的节点,并返回 新的头节点 。示例 1:输入:head = [1,2,6,3,4,5,6], val = 6输出:[1,2,3,4,5]示例 2:输入:head = [], val = 1输出:[]示例 3:输入:head = [7,7,7,7], val = 7输出:[]提示: 列表中的节点在范围 [0, 104] 内 1 <=...原创 2021-06-05 11:55:02 · 65 阅读 · 0 评论 -
leetcode two sum C++
转自:https://blog.csdn.net/Mary19920410/article/details/66476936?utm_source=blogxgwz8 class Solution {public: vector<int> twoSum(vector<int>& nums, int target) { vector...转载 2019-01-06 11:55:02 · 440 阅读 · 1 评论