优化原题解,添加部分题目

This commit is contained in:
programmercarl
2022-07-20 09:45:11 +08:00
parent 1ca56dd472
commit d4f89d1b0e
27 changed files with 896 additions and 206 deletions

View File

@@ -27,6 +27,8 @@
## 思路
本题B站视频讲解版[学透哈希表数组使用有技巧Leetcode242.有效的字母异位词](https://www.bilibili.com/video/BV1YG411p7BA)
先看暴力的解法两层for循环同时还要记录字符是否重复出现很明显时间复杂度是 O(n^2)。
暴力的方法这里就不做介绍了,直接看一下有没有更优的方式。