- 博客(15)
- 收藏
- 关注
原创 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 distance between i and k (the order of the tuple matters).Find the number of boomerangs. You may ass
2016-11-24 11:47:15 299
原创 462. 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 move is incrementing a selected element by 1 or decrementing a selected element by 1.
2016-11-24 10:14:18 237
原创 455. 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 has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each cookie
2016-11-23 17:26:17 230
原创 463. 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 horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.
2016-11-23 16:47:20 195
原创 22. Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
2016-11-16 16:32:41 167
原创 423. Reconstruct Original Digits from English
Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order.
2016-11-16 16:00:07 190
原创 121.Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.
2016-11-15 16:43:02 173
原创 202. Happy Number
Write an algorithm to determine if a number is "happy".
2016-11-15 16:17:33 153
原创 377. Combination Sum IV
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.
2016-11-11 15:59:06 154
原创 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 coordinates of the horizontal diameter. Since it's horizontal, y-coordinates don't matter and hence the x-coordinates of start a
2016-11-10 15:55:37 1129
原创 436. Find Right Interval
Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point of the interval i, which can be called that j is on the "right" of i.
2016-11-09 17:36:34 625
原创 453. 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, where a move is incrementing n - 1 elements by 1.
2016-11-09 16:46:05 1222
原创 Android failed to find target with hash string 'android-23'
Android failed to find target with hash string 'android-23'
2016-11-09 16:01:31 3623 1
转载 Http Status 304响应状态的资源更新机制
http请求头和响应头之间的通信是有网络访问系统(如浏览器)来进行处理的,根据这样的请求头和响应头可以避免重复的资源(css,js,图片,文本等),提高用户体验。
2016-11-08 16:30:23 3721
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人