- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 第十六周LeetCode
题目 Integer Break 难度 Medium 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.
2017-12-20 23:40:19 143
原创 第十六周LeetCode
题目 Maximum Length of Pair Chain 难度 Medium 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 an
2017-12-20 23:32:48 127
原创 第十六周LeetCode
题目 Climbing Stairs 难度 easy You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top
2017-12-20 23:06:54 162
原创 第十五周LeetCode
题目 Maximum Product Subarray 难度 Medium Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],
2017-12-14 22:22:00 164
原创 第十五周LeetCode
题目 Edit Distance 难度 hard Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3
2017-12-14 22:10:28 142
原创 第十五周LeetCode
题目 Minimum ASCII Delete Sum for Two Strings 难度 Medium Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = “sea”, s2 =
2017-12-14 21:59:33 173
原创 第十五周LeetCode
题目 Arithmetic Slices 难度 Medium A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same. For e
2017-12-14 21:52:49 172
原创 第十五周LeetCode
题目 Delete Operation for Two Strings 难度 Medium Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one char
2017-12-14 21:14:16 156
原创 第十五周LeetCode
题目 House Robber 难度 Easy You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of
2017-12-14 21:04:07 182
原创 第十四周LeetCode
题目 Palindromic Substrings 难度 Medium Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counte
2017-12-06 23:04:13 127
原创 第十四周LeetCode
题目 Counting Bits 难度 Medium Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an arr
2017-12-06 22:08:37 120
原创 第十四周LeetCode
题目 Minimum Height Trees 难度 Medium For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, tho
2017-12-06 20:47:13 152
原创 第十四周LeetCode
题目 Longest Univalue Path 难度 Easy Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the root. Note
2017-12-06 20:38:45 137
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人