归档 2016年11月

[LeetCode]Minimum Number of Arrows to Burst Balloons

题目描述:

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

继续阅读

[LeetCode]Minimum Moves to Equal Array Elements

题目描述:

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

继续阅读

[LeetCode]Sort Characters By Frequency

题目描述:

LeetCode 451. Sort Characters By Frequency

Given a string, sort it in decreasing order based on the frequency of characters.

Example 1:

Input:
"tree"

Output:
"eert"

Explanation:
'e' appears twice while 'r' and 't' both appear once.
So 'e' ...

继续阅读

[LeetCode]Serialize and Deserialize BST

题目描述:

LeetCode 449. Serialize and Deserialize BST

Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network ...

继续阅读

每日归档

上个月

下个月

归档