国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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)遵守國家法律
明光市| 清流县| 金堂县| 乌审旗| 礼泉县| 南华县| 思南县| 斗六市| 沅陵县| 赣州市| 浦江县| 融水| 安仁县| 聊城市| 抚松县| 读书| 都匀市| 济南市| 东光县| 江川县| 临朐县| 房产| 垣曲县| 毕节市| 盱眙县| 扶风县| 龙游县| 兴国县| 民丰县| 嘉兴市| 修文县| 天长市| 九江市| 红河县| 西丰县| 迁西县| 蚌埠市| 车致| 五河县| 靖宇县| 曲水县|