CS基础
文章平均质量分 87
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 · 434 阅读 · 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 · 553 阅读 · 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 · 300 阅读 · 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 · 339 阅读 · 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 · 451 阅读 · 0 评论
分享