MCPcopy Create free account
hub / github.com/algorithm004-01/algorithm004-01 / DicValid

Method DicValid

Week 02/id_171/ValidAnagramSol.cs:86–117  ·  view source on GitHub ↗

字典,先将s的字符加入到字典中,再遍历t的字符,进行减少,如果发现有字符不在字典中,则证明是新的字母,直接返回false, 最后返回true

(string s, string t)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected