摘要: //利用字符只有26个 public boolean isUnique(String astr) { int[] ch = new int[26]; for(int i=0;i<astr.length();i++){ ch[astr.charAt(i)-'a'] +=1; //将该字符放入数据并且该 阅读全文
posted @ 2020-06-10 17:39 振啊 阅读(242) 评论(0) 推荐(0)