五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

leetcode771. Jewels and Stones

2022-03-01 13:25 作者:您是打尖兒還是住店呢  | 我要投稿

You're given strings?jewels?representing the types of stones that are jewels, and?stones?representing the stones you have. Each character in?stones?is a type of stone you have. You want to know how many of the stones you have are also jewels.

Letters are case sensitive, so?"a"?is considered a different type of stone from?"A".

?

Example 1:

Input: jewels = "aA", stones = "aAAbbbb"Output: 3

Example 2:

Input: jewels = "z", stones = "ZZ"Output: 0

?

Constraints:

  • 1 <=?jewels.length, stones.length <= 50

  • jewels?and?stones?consist of only English letters.

  • All the characters of?jewels?are?unique.




Runtime:?3 ms, faster than?32.45%?of?Java?online submissions for?Jewels and Stones.

Memory Usage:?42.7 MB, less than?15.42%?of?Java?online submissions for?Jewels and Stones.


leetcode771. Jewels and Stones的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
汨罗市| 贡觉县| 清水县| 三江| 昌图县| 克拉玛依市| 平舆县| 大厂| 澎湖县| 萨迦县| 栖霞市| 伊宁县| 青川县| 保亭| 天峻县| 镇远县| 琼结县| 湖州市| 镇康县| 内乡县| 丰原市| 沛县| 会宁县| 崇左市| 临潭县| 新宾| 沅陵县| 安泽县| 醴陵市| 泗洪县| 泸州市| 都安| 安远县| 思茅市| 荔浦县| 志丹县| 永年县| 漳平市| 巴林左旗| 南华县| 西和县|