云胡同学
云胡同学
全部文章
leetcode
C++(8)
java(2)
python(11)
Web前端(11)
剑指offer(1)
基础小项目(1)
小程序(1)
我的安卓之路(11)
数据库(1)
数据结构(11)
未归档(37)
算法(30)
软件配置(2)
题解(1)
归档
标签
去牛客网
登录
/
注册
云胡同学的博客
全部文章
/ leetcode
(共34篇)
LeetCode 189. 旋转数组
题目描述 给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。 输入: [1,2,3,4,5,6,7] 和 k = 3 输出: [5,6,7,1,2,3,4] 解释: 向右旋转 1 步: [7,1,2,3,4,5,6] 向右旋转 2 步: [6,7,1,2,3,4,5] 向右旋...
2018-08-14
0
431
15. 3Sum
题目描述 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the s...
2017-07-31
0
370
16. 3Sum Closest
题目描述 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three int...
2017-07-31
0
349
88. Merge Sorted Array
题目描述 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has enough space ...
2017-07-28
0
380
119. Pascal's Triangle II
题目描述 Given an index k, return the kth row of the Pascal’s triangle. For example, given k = 3, Return [1,3,3,1]. 思路 得到第k+1行的一整列的值。 解法1得到前k+1行的值,将最...
2017-07-26
0
560
118. Pascal's Triangle
题目描述 Given numRows, generate the first numRows of Pascal’s triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [...
2017-07-26
0
416
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...
2017-06-25
0
444
80. Remove Duplicates from Sorted Array II
题目描述 Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice? For example, Given sorted array nums = [1,1,1,2,2,3], Your ...
2017-06-23
0
378
26. Remove Duplicates from Sorted Array
题目描述 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra s...
2017-06-22
0
387
27. Remove Element
题目描述 Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another arra...
2017-06-22
0
329
首页
上一页
1
2
3
4
下一页
末页