![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CS基础
Matcha_ee
这个作者很懒,什么都没留下…
展开
-
LeetCode - 350. Intersection of Two Arrays II
题目: Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each element in the result should appear as原创 2017-02-27 21:32:43 · 300 阅读 · 0 评论 -
leetCode - 496. Next Greater Element I
题目: You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of原创 2017-02-28 11:52:50 · 422 阅读 · 0 评论 -
LeetCode - 268. Missing Number
题目: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. 思路与步骤: 思路1: 先排序,然后将数组与下标比较,第一次出现不相等的下标即确实数据。 学习别人的思路: 思路2: 先对0到原创 2017-02-22 22:51:25 · 202 阅读 · 0 评论 -
LeetCode - 136. Single Number
题目: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without usin原创 2017-03-02 19:53:24 · 245 阅读 · 0 评论 -
LeetCode - 66. Plus One
题目: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leading zero, except the number 0 itself. The dig原创 2017-02-24 14:53:37 · 285 阅读 · 0 评论