原创 804. Unique Morse Code Words

International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as fol

原创 2018屆實習-阿里巴巴內推編程題(簡單、清晰)

對於一個由一位十進制整數構成的二叉樹,如果深度不超過4,可以用一個三位十進制整數構成的數組表示,具體規則如下: 1、百位數表示樹的層次L,1<=L<=4;十位數表示在該層次中的位置P,1<=P<=8;個位數表示數值V。 2、數組裏,L一定

原创 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

原创 811. Subdomain Visit Count

A website domain like “discuss.leetcode.com” consists of various subdomains. At the top level, we have “com”, at the ne

原创 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. I

原创 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 fr

原创 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 sam