- 博客(12)
- 收藏
- 关注
原创 LeetCode 473. Matchsticks to Square
原题网址:https://leetcode.com/problems/matchsticks-to-square/Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you c
2016-12-26 04:05:48 1467
原创 LeetCode 477. Total Hamming Distance
原题网址:https://leetcode.com/problems/total-hamming-distance/The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Now your job is
2016-12-20 04:08:53 1028
原创 LeetCode 461. Hamming Distance
原题网址:https://leetcode.com/problems/hamming-distance/The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x
2016-12-20 03:54:53 741
原创 LeetCode 434. Number of Segments in a String
原题网址:https://leetcode.com/problems/number-of-segments-in-a-string/Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.Ple
2016-12-20 03:42:35 614
原创 LeetCode 468. Validate IP Address
原题网址:https://leetcode.com/problems/validate-ip-address/方法:扫描检查,代码写得比较丑陋,暂时凑合着。public class Solution { private static final String NEITHER = "Neither"; private static final String IPV4 = "I
2016-12-15 06:07:59 704
原创 LeetCode 474. Ones and Zeroes
原题网址:https://leetcode.com/problems/ones-and-zeroes/In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue.For now, suppose you a
2016-12-15 04:47:57 1495
原创 LeetCode 475. Heaters
原题网址:https://leetcode.com/problems/heaters/Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses.Now, you are given
2016-12-12 04:00:28 2423
原创 467. Unique Substrings in Wraparound String
原题网址:https://leetcode.com/problems/unique-substrings-in-wraparound-string/Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like this:
2016-12-06 05:32:55 660
原创 469. Convex Polygon
原题网址:https://leetcode.com/problems/convex-polygon/Given a list of points that form a polygon when joined sequentially, find if this polygon is convex (Convex polygon definition).Note:T
2016-12-05 03:36:00 1368
原创 446. Arithmetic Slices II - Subsequence
原题网址:https://leetcode.com/problems/arithmetic-slices-ii-subsequence/A sequence of numbers is called arithmetic if it consists of at least three elements and if the difference between any two con
2016-12-04 04:18:05 1291
原创 452. Minimum Number of Arrows to Burst Balloons
原题网址:https://leetcode.com/problems/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 st
2016-12-02 02:33:50 595
原创 454. 4Sum II
原题网址:https://leetcode.com/problems/4sum-ii/Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.To make
2016-12-01 02:15:16 820
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人