
LeetCode-其他
文章平均质量分 56
R_zz
这个作者很懒,什么都没留下…
展开
-
LeetCode-530. Minimum Absolute Difference in BST
问题: https://leetcode.com/problems/minimum-absolute-difference-in-bst/?tab=Description Given a binary search tree with non-negative values, find the minimum absolute difference between values of any t原创 2017-03-02 10:04:14 · 302 阅读 · 0 评论 -
LeetCode-Greedy-455. Assign Cookies
问题:https://leetcode.com/problems/assign-cookies/?tab=Description 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原创 2017-02-27 16:51:44 · 166 阅读 · 0 评论 -
LeetCode-Greedy-455. Assign Cookies
问题:https://leetcode.com/problems/assign-cookies/?tab=Description 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原创 2017-02-27 16:51:05 · 205 阅读 · 0 评论 -
LeetCode-Backtracking-401. Binary Watch
问题:https://leetcode.com/problems/binary-watch/?tab=Description A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). Each L原创 2017-02-27 15:18:18 · 244 阅读 · 0 评论 -
LeetCode—Divide and Conquer--53. Maximum Subarray
问题:https://leetcode.com/problems/maximum-subarray/?tab=Description Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array原创 2017-02-25 15:13:39 · 366 阅读 · 0 评论 -
LeetCode-504. Base 7
问题: https://leetcode.com/problems/base-7/?tab=Description Given an integer, return its base 7 string representation. 将十进制数字转换成7进制,且以字符串形式返回。若数字为负数,则将其绝对值转换后再添加符号。 Example 1: Input: 100 Outp原创 2017-03-02 16:43:03 · 362 阅读 · 0 评论 -
LeetCode-506. Relative Ranks
问题:https://leetcode.com/problems/relative-ranks/?tab=Description Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: “Go原创 2017-03-02 16:25:11 · 273 阅读 · 0 评论 -
LeetCode-492. Construct the Rectangle
问题:https://leetcode.com/problems/construct-the-rectangle/?tab=Description For a web developer, it is very important to know how to design a web page’s size. So, given a specific rectangular web page’s原创 2017-03-02 15:44:28 · 265 阅读 · 0 评论 -
LeetCode-412. Fizz Buzz
问题:https://leetcode.com/problems/fizz-buzz/?tab=Description Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead o原创 2017-03-02 15:10:50 · 320 阅读 · 0 评论 -
LeetCode-Brainteaser-292. Nim Game
问题:https://leetcode.com/problems/nim-game/?tab=Description You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1原创 2017-03-02 10:20:40 · 259 阅读 · 0 评论 -
LeetCode-Greedy- 122. Best Time to Buy and Sell Stock II
问题:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/?tab=Description Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to fin原创 2017-02-27 17:05:04 · 187 阅读 · 0 评论