Leetcode 771. Jewels and Stones
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                Leetcode 771. Jewels and Stones
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                
                            
                            
                            class Solution(object):def numJewelsInStones(self, J, S):""":type J: str:type S: str:rtype: int"""count=collections.Counter(S)ans=0for j in J:ans+=count.get(j,0)return ans  
                        
                        
                        ?
轉載于:https://www.cnblogs.com/zywscq/p/10562590.html
總結
以上是生活随笔為你收集整理的Leetcode 771. Jewels and Stones的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: hackerrank刷题
- 下一篇: SQL SERVER 查询表的行数
