leetcode刷题(二)

题目地址:https://leetcode.com/problems/jewels-and-stones/description/ 问题描述:有两堆东西,一堆J是已知的宝石,另一堆S不确定是否是宝石,要求返回S中宝石的个数 我的代码: class Solution { public:     int numJewelsInStones(string J, string S) {         i
相关文章
相关标签/搜索