1. Description:
Notes:
2. Examples:
3.Solutions:
1 public int numJewelsInStones(String J, String S) { 2 int num = 0; 3 for (int i = 0; i < S.length(); i++) { 4 if (J.contains(S.charAt(i) + "")) 5 num++; 6 } 7 return num; 8 }
原文地址:https://www.cnblogs.com/sheepcore/p/12394816.html
时间: 2024-11-08 07:18:51