PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
Marginalman
Re: [LeetCode] 刷到面试 Grind169 C++
楼主:
SuiseiLeda
(星街雷达)
2023-03-15 17:00:45
242. Valid Anagram easy题
哈希表
第一次遇到这个
但还满好懂得
class Solution {
public:
bool isAnagram(string s, string t) {
int hash[26] = {0};
if(s.length()!=t.length()) return false;
for(int i=0;i<s.length();i++){
hash[s[i]-'a']++;
hash[t[i]-'a']
继续阅读
[闲聊] 黑++
paul1951
Re: [闲聊] Q
qscxz
Re: [闲聊] 万强请进
jeanvanjohn
Re: [闲聊] 万强请进
Abby530424
[闲聊] 这个世上烂人一堆
SubaTowa
Re: [瓦特] 你齁EN自然
mayolane
阿床演唱会
louispencer
Re: [闲聊] 万强请进
jeanvanjohn
[闲聊] 百合最多可以几P
Ericz7000
[姆咪] 干
SnowWolff
Links
booklink
Contact Us: admin [ a t ] ucptt.com