class Solution {
public int numJewelsInStones(String jewels, String stones) {
int len1 = jewels.length(), len2 = stones.length();
int[] arr = new int[256];
int res = 0;
for(int i = 0; i < len1; i++){
arr[jewels.charAt(i)] = 1;
}
for(int i = 0; i < len2; i++){
res += arr[stones.charAt(i)];
}
return res;
}
}
09-14
264
10-14
446
10-20
275