LeetCode 448. Find All Numbers Disappeared in an Array

原题网址:https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/ Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), ...

2017-01-07 02:21:11

阅读数:374

评论数:0

LeetCode 460. LFU Cache

原题网址:https://leetcode.com/problems/lfu-cache/ Design and implement a data structure for Least Frequently Used (LFU) cache. It should support t...

2017-01-06 05:34:25

阅读数:835

评论数:0

LeetCode 451. Sort Characters By Frequency

原题网址:https://leetcode.com/problems/sort-characters-by-frequency/ Given a string, sort it in decreasing order based on the frequency of character...

2017-01-04 09:46:43

阅读数:341

评论数:0

LeetCode 445. Add Two Numbers II

原题网址:https://leetcode.com/problems/add-two-numbers-ii/ You are given two linked lists representing two non-negative numbers. The most significan...

2017-01-04 09:33:07

阅读数:444

评论数:0

LeetCode 396. Rotate Function

原题网址:https://leetcode.com/problems/rotate-function/ Given an array of integers A and let n to be its length. Assume Bk to be an array obtai...

2017-01-04 09:06:31

阅读数:234

评论数:0

LeetCode 450. Delete Node in a BST

原题网址:https://leetcode.com/problems/delete-node-in-a-bst/ Given a root node reference of a BST and a key, delete the node with the given key in t...

2017-01-04 08:36:18

阅读数:672

评论数:0

LeetCode 449. Serialize and Deserialize BST

原题网址:https://leetcode.com/problems/serialize-and-deserialize-bst/ Serialization is the process of converting a data structure or object into a s...

2017-01-04 06:39:45

阅读数:474

评论数:0

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...

2016-12-26 04:05:48

阅读数:767

评论数:0

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 cor...

2016-12-20 04:08:53

阅读数:754

评论数:0

LeetCode 461. Hamming Distance

原题网址:https://leetcode.com/problems/hamming-distance/ The Hamming distance between two integers is the number of positions at which the correspon...

2016-12-20 03:54:53

阅读数:516

评论数:0

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 ...

2016-12-20 03:42:35

阅读数:397

评论数:0

LeetCode 468. Validate IP Address

原题网址:https://leetcode.com/problems/validate-ip-address/ 方法:扫描检查,代码写得比较丑陋,暂时凑合着。 public class Solution { private static final String NEITHER = &...

2016-12-15 06:07:59

阅读数:458

评论数:0

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 ...

2016-12-15 04:47:57

阅读数:933

评论数:0

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 r...

2016-12-12 04:00:28

阅读数:1390

评论数:0

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 "a...

2016-12-06 05:32:55

阅读数:454

评论数:0

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 ...

2016-12-05 03:36:00

阅读数:1031

评论数:0

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...

2016-12-04 04:18:05

阅读数:909

评论数:0

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 s...

2016-12-02 02:33:50

阅读数:394

评论数:0

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...

2016-12-01 02:15:16

阅读数:479

评论数:0

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 su...

2016-11-30 04:37:54

阅读数:981

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭