- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 【LeetCode.287】Find the Duplicate Number(寻找重复数 | medium)
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one.Example 1:Input: [1,3,4,2,2]Ou
2020-07-20 22:39:15
154
原创 【LeetCode.134】Gas Station(加油站 | medium)
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty
2020-07-20 15:10:34
191
原创 【LeetCode.1324】Print Words Vertically(竖直打印单词 | medium)
Q:Given a string s.Returnall the words vertically in the same order in which they appear in s.Words are returned as a list of strings, complete withspaces when is necessary. (Trailing spaces are not allowed).Each word would be put on only one column a...
2020-07-20 14:00:30
333
原创 【LeetCode.53】Maximum Subarray(最大子序和 | 动态规划)
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.Example:Input: [-2,1,-3,4,-1,2,1,-5,4],Output: 6Explanati...
2018-09-03 02:23:53
191
原创 阿里云态势感知提示漏洞【RHSA-2018:0008: kernel security update】的解决方法
yum update kernelyum update kernel-develyum update kernel-headersreboot
2018-04-03 17:06:47
897
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人