
hashset
文章平均质量分 52
flyatcmu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Longest word in Dictionary
Given a list of stringswordsrepresenting an English Dictionary, find the longest word inwordsthat can be built one character at a time by other words inwords. If there is more than one possible a...原创 2020-03-11 12:25:42 · 404 阅读 · 0 评论 -
Reorder Routes to Make All Paths Lead to the City Zero
There arencities numbered from0ton-1andn-1roads such thatthere is only one way to travel between twodifferent cities (this network form a tree).Last year,The ministry of transportdecided to orient the roads in one direction because they are to...原创 2020-05-31 13:35:46 · 258 阅读 · 0 评论 -
Jewels and Stones
You're given stringsJrepresenting the types of stones that are jewels, andSrepresenting the stones you have. Each character inSis a type of stone you have. You want to know how many of the sto...原创 2020-03-09 14:31:42 · 162 阅读 · 0 评论 -
Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1, 2, 3, 4]...原创 2014-02-06 12:37:15 · 582 阅读 · 0 评论