档案日期2016的44

2016年10月31日 - 2016年11月6日

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

继续阅读

每日归档

上周

下周

归档