![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
四海八荒一只飞鱼
整理,分享,一起学
展开
-
804. Unique Morse Code Words
Java: public int uniqueMorseRepresentations(String[] words) { String[] morse = new String[]{".-","-...","-.-.","-..",".","..-.",&原创 2018-05-28 08:52:53 · 119 阅读 · 0 评论 -
458. Poor Pigs
There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that poison it will die within 15 minutes. What is the minimum...原创 2018-05-28 09:26:23 · 204 阅读 · 0 评论 -
819. Most Common Word
Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at least one word that isn’t banned, and that the answer...原创 2018-05-28 10:08:05 · 202 阅读 · 0 评论 -
788. Rotated Digits
X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotated - we cannot choose to leave it alone.A number...原创 2018-06-05 09:55:34 · 135 阅读 · 0 评论 -
771. Jewels and Stones
You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the sto...原创 2018-05-29 09:18:21 · 146 阅读 · 0 评论 -
811. Subdomain Visit Count
A website domain like “discuss.leetcode.com” consists of various subdomains. At the top level, we have “com”, at the next level, we have “leetcode.com”, and at the lowest level, “discuss.leetcode.com”...原创 2018-05-29 09:59:31 · 234 阅读 · 0 评论