lettcode专题

Lettcode第二天之石头于宝石(771)

哈希集合 public static int numJewelsInStones(String J, String S) {int lenj=J.length();int sum=0;Set<Character> hashMap=new HashSet<>(lenj-1);for (int x=0;x<lenj;x++){hashMap.add(J.charAt(x));}for (int