归档 2017年12月

[LeetCode]Prefix and Suffix Search

题目描述:

LeetCode 745. Prefix and Suffix Search

Given many words, words[i] has weight i.

Design a class WordFilter that supports one function, WordFilter.f(String prefix, String suffix). It will return the word with given prefix and suffix with ...

继续阅读

[LeetCode]Find Smallest Letter Greater Than Target

题目描述:

LeetCode 744. Find Smallest Letter Greater Than Target

Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list that is larger than the given target ...

继续阅读

每日归档

上个月

归档