Skip to content

Commit a709b99

Browse files
authored
docs: add a description of the solution to lcci problem: No.01.02 (doocs#739)
No.01.02.Check Permutation
1 parent ba1778c commit a709b99

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lcci/01.02.Check Permutation/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@
3030

3131
<!-- 这里可写通用的实现逻辑 -->
3232

33-
用一个哈希表作为字符计数器,`O(n)` 时间内解决。
33+
**方法一:**
34+
35+
使用哈希表作为字符计数器,`O(n)` 时间内解决。
36+
37+
**方法二:**
38+
39+
按照字符编码重新排序字符串,再检查两者一致性。
3440

3541
<!-- tabs:start -->
3642

0 commit comments

Comments
 (0)