- 博客(20)
- 资源 (3)
- 收藏
- 关注
原创 279. Perfect Squares
279. Perfect Squares 1. 题目题目链接Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which sum to n.Example 1:Input: n = 12Output: 3Explanati...
2019-01-28 23:52:17 144
原创 646. Maximum Length of Pair Chain
646. Maximum Length of Pair Chain 1. 题目题目链接You are given n pairs of numbers. In every pair, the first number is always smaller than the second number.Now, we define a pair (c, d) can follow anoth...
2019-01-28 22:49:31 214
原创 343. Integer Break
343. Integer Break 1. 题目题目链接Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get....
2019-01-28 17:10:02 264
原创 62. Unique Paths
62. Unique Paths 1. 题目题目链接A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The ro...
2019-01-28 16:35:21 99
原创 96. Unique Binary Search Trees
96. Unique Binary Search Trees 1. 题目题目链接Given n, how many structurally unique BST’s (binary search trees) that store values 1 … n?Example:Input: 3Output: 5Explanation:Given n = 3, there are a...
2019-01-28 16:15:12 406
原创 95. Unique Binary Search Trees II
95. Unique Binary Search Trees II 1. 题目题目链接Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1 … n.Example:Input: 3Output:[[1,null,3,2],[3,2,...
2019-01-28 15:27:34 123
原创 931. Minimum Falling Path Sum
931. Minimum Falling Path Sum 1. 题目题目链接Given a square array of integers A, we want the minimum sum of a falling path through A.A falling path starts at any element in the first row, and chooses o...
2019-01-28 14:10:32 236
原创 322. Coin Change--硬币找零钱问题
硬币找零钱问题 Coin Change##一、##1. 题目2. 题目分析3. 解题思路4. 代码实现(java)##二 、##1. 题目2. 题目分析3. 解题思路4. 代码实现(java)##三、##1. 题目2. 题目分析3. 解题思路4. 代码实现(java)##四、##1. 题目2. 题目分析3. 解题思路4. 代码实现(ja...
2019-01-25 00:29:08 703
原创 860. Lemonade Change
860. Lemonade Change 1. 题目At a lemonade stand, each lemonade costs $5.Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bills).Each customer wi...
2019-01-23 23:59:06 83
原创 303. Range Sum Query - Immutable
303. Range Sum Query - Immutable 1. 题目Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2...
2019-01-23 23:39:29 94
原创 767. Reorganize String
767. Reorganize String 1. 题目Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same.If possible, output any possible result...
2019-01-20 22:14:35 228
原创 75. Sort Colors
75. Sort Colors 1. 题目Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.H...
2019-01-19 20:32:14 176
原创 164. Maximum Gap
164. Maximum Gap 1. 题目Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Return 0 if the array contains less than 2 elements.Example 1:Input:...
2019-01-19 20:08:37 233
原创 148. Sort List
在家就是堕落的温床,哎,没心思学习,另外又冷不想动,,,,148. Sort List 1. 题目Sort a linked list in O(n log n) time using constant space complexity.Example 1:Input: 4->2->1->3Output: 1->2->3->4Example 2:...
2019-01-19 17:42:24 128
原创 杂记--2019.1.17开启寒假备战春招的B计划
2019.1.17开启寒假备战春招的B计划2019.1.15从学校回家,之前打算1.12期末考完后,留在学校看书,比较清静的,但接到我姐电话后因为部分原因,直接将原先1.24的车票改签成15号。到家后,感觉太冷了(家在南方,没有暖气,读书在沿海,冬天不冷),完全不想动电脑和键盘,只想躺被窝里,但拒绝不了游戏的诱惑,露出两只手打手游,冻得手指都不灵敏了,好冷啊,不想学习,直接拖到今天。刚才突然想...
2019-01-17 17:36:33 247
原创 cvte面试题收集
什么样的对象可以当作gcrootshttps://blog.csdn.net/bolg_hero/article/details/79344745在Java语言里,可作为GC Roots对象的包括如下几种:a.虚拟机栈(栈桢中的本地变量表)中的引用的对象b.方法区中的类静态属性引用的对象c.方法区中的常量引用的对象d.本地方法栈中JNI的引用的对象hashmap冲突的解决方法...
2019-01-08 11:39:58 17218 1
原创 324. Wiggle Sort II
324. Wiggle Sort II1. 题目描述题目链接Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]…Example 1:Input: nums = [1, 5, 1, 1, 6, 4]Output: One possible an...
2019-01-06 21:51:59 124
原创 179. Largest Number
179. Largest Number1. 题目描述题目链接Given a list of non negative integers, arrange them such that they form the largest number.Given a list of non negative integers, arrange them such that they form th...
2019-01-06 00:30:25 265
原创 731. My Calendar II
731. My Calendar II1. 题目描述题目链接Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking.Your class will have the method, book...
2019-01-05 00:28:24 340
原创 729. My Calendar I
763. Partition Labels开篇闲话:leetcode间隔一个星期未刷了,满满的罪恶感。因为10个高中同学元旦来我的城市找我玩,带他们在外面浪了四天,然后回学校补图形学作业、形势与政策论文、实训报告,这就又过了几天。其实这几天是可以刷题的,只是感觉自己颓废了很多,那种对什么都提不起兴趣的感觉(自从上星期实习辞职后,生活突然变得空虚),,,昨天看到cvte的补招笔试过了,竟然过了,...
2019-01-04 22:29:21 219
swipter轮播图需要引用的外部css和js文件
2017-09-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人