最新 最热

791. Custom Sort String

思路2: 先把T的每个字符和对应个数存入bucket数组,根据S的顺序扫一遍,最后再扫一遍剩余字符(非S中的字符)。

2019-05-26
1

【每天一道编程系列-2018.2.10】(Ans)

版权声明:本文为博主原创文章,未经博主允许不得转载。https://blog.csdn.net/Oct31_Dec25/article/details/79307636

2019-03-14
1

LeetCode409 Longest Palindrome

Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.

2019-02-19
1

Leetcode 208 Implement Trie (Prefix Tree) 字典树

Implement a trie with insert, search, and startsWith methods. Note: You may assume that all inputs are consist of lowercase letters a-z. 实现字典树,包括插入、查询整词、查询...

2018-01-12
1

LWC 53:691. Stickers to Spell Word

LWC 53:691. Stickers to Spell Word传送门:691. Stickers to Spell WordProblem: We are given N differen

2018-01-02
2