- 博客(11)
- 收藏
- 关注
原创 Leetcode算法学习日志-443 String Compression
Leetcode 443 String Compression题目原文Given an array of characters, compress it in-place.The length after compression must always be smaller than or equal to the original array.Every element of
2017-10-31 19:41:34 747
原创 Leetcode算法学习日志-86 Partition List
Leetcode 86 Partition List题目原文Given a linked list and a value x, partition it such that all nodes less thanx come before nodes greater than or equal to x.You should preserve the original rel
2017-10-30 21:50:11 220
原创 Leetcode算法学习日志-447 Number of Boomerangs
Leetcode 447 Number of Boomerangs题目原文Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points(i, j, k) such that the distance between i and j equals the d
2017-10-30 15:10:38 326
原创 Leetcode算法学习日志-152 Maximum Product Subarray
Leetcode 152 Maxinum Product Subarray题目原文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],t
2017-10-28 15:12:51 276
原创 Leetcode算法学习日志-54 Spiral Matrix
Leetcode 54 Spiral Matrix题目原文Given a matrix of m x n elements (m rows,n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ],
2017-10-26 21:04:14 236
原创 Leetcode算法学习日志-60 Permutation Sequence
Leetcode 60 Permutation Sequence题目原文The set [1,2,3,…,n] contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie
2017-10-26 11:12:51 237
原创 Leetcode算法学习日志-127 Word Ladder
Leetoce 127 Word Ladder题目原文Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence frombeginWord to endWord, such that:On
2017-10-26 10:38:30 509
原创 Leetcode算法学习日志-714 Best Time to Buy and Sell Stock with Transaction Fee
Leetcode 714 Best Time to Buy and Sell Stock with Transaction Fee题目原文Your are given an array of integers prices, for which thei-th element is the price of a given stock on day i; and a non-neg
2017-10-23 21:16:05 6174 1
原创 Leetcode算法学习日志-39 Combination Sum
Leetcode 39 Combination Sum题目原文Given a set of candidate numbers (C)(without duplicates) and a target number (T), find all unique combinations inC where the candidate numbers sums to T.Th
2017-10-20 09:21:55 264
原创 Leetcode算法学习日志-621 Task Scheduler
Leetcode 621 Task Scheduler题目原文Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could be done with
2017-10-12 15:25:48 1701
原创 Leetcode算法学习日志-452 Minimum Number of Arrows to Burst Balloons
Leetcode 452 Minimum Number of Arrows to Burst Balloons题目原文There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordin
2017-10-12 15:21:33 339
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人