leetcode刷題(二)

題目地址:https://leetcode.com/problems/jewels-and-stones/description/ 問題描述:有兩堆東西,一堆J是已知的寶石,另一堆S不確定是否是寶石,要求返回S中寶石的個數 我的代碼: class Solution { public:     int numJewelsInStones(string J, string S) {         i
相關文章
相關標籤/搜索