首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
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
阅读更多...