- 博客(13)
- 收藏
- 关注
原创 456. 132 Pattern
原题网址:https://leetcode.com/problems/132-pattern/Given a sequence of n integers a1, a2, ..., an, a 132 pattern is a subsequence ai, aj, ak such that i j k and ai < ak j. Design an algori
2016-11-30 04:37:54 1597 1
原创 462. Minimum Moves to Equal Array Elements II
原题网址:https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a m
2016-11-27 03:27:16 602
原创 464. Can I Win
原题网址:https://leetcode.com/problems/can-i-win/In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach
2016-11-26 02:24:53 1049
原创 LeetCode 465. Optimal Account Balancing
原题网址:https://leetcode.com/problems/optimal-account-balancing/A group of friends went on holiday and sometimes lent each other money. For example, Alice paid for Bill's lunch for $10. Then later
2016-11-22 04:40:39 3612 1
原创 LeetCode 463. Island Perimeter
原题网址:https://leetcode.com/problems/island-perimeter/You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizon
2016-11-21 04:00:43 1509
原创 LeetCode 453. Minimum Moves to Equal Array Elements
原题网址:https://leetcode.com/problems/minimum-moves-to-equal-array-elements/Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, wh
2016-11-21 03:50:55 488
原创 LeetCode 447. Number of Boomerangs
原题网址:https://leetcode.com/problems/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
2016-11-21 03:33:07 611
原创 LeetCode 459. Repeated Substring Pattern
原题网址:https://leetcode.com/problems/repeated-substring-pattern/Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring t
2016-11-19 04:33:02 571
原创 LeetCode 441. Arranging Coins
原题网址:https://leetcode.com/problems/arranging-coins/You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.Given n, find the to
2016-11-19 03:19:43 806
原创 LeetCode 400. Nth Digit
原题网址:https://leetcode.com/problems/nth-digit/Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...Note:n is positive and will fit within the range of a
2016-11-18 07:54:19 381
原创 LeetCode 455. Assign Cookies
原题网址:https://leetcode.com/problems/assign-cookies/Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i h
2016-11-17 04:25:32 526
原创 LeetCode 414. Third Maximum Number
原题网址:https://leetcode.com/problems/third-maximum-number/Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The t
2016-11-17 03:18:06 438
原创 LeetCode 408. Valid Word Abbreviation
原题网址:https://leetcode.com/problems/valid-word-abbreviation/Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation.A string such
2016-11-16 07:38:08 647
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人