LeetCodeAnimation icon indicating copy to clipboard operation
LeetCodeAnimation copied to clipboard

Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路)

Results 21 LeetCodeAnimation issues
Sort by recently updated
recently updated
newest added

算法应该是在匹配到第一个字符后,才真正开始递归dfs,而在匹配不到第一个字符的时候,是双循环继续在矩阵中查找第一个字符,这个时候并没从矩阵当前字符的4个方向去走。当然匹配到一半失败的,也会在双循环中继续往下重新找第一个字符。我的意思,寻找第一个匹配字符失败的时候,并不是朝4个方向走。

解析写使用map使用内存空间减少时间复杂度 注释写时间复杂度o(n) 最后代码还是用的n平方的c java py代码

Content length exceeded

使用双重for循环,不应该是n ^ 2 的时间复杂度吗,当nums数组存放数字越多,越趋向于n ^ 2的时间复杂度 [原文地址](https://github.com/MisterBooo/LeetCodeAnimation/blob/master/0001-Two-Sum/Article/0001-Two-Sum.md) ![image](https://user-images.githubusercontent.com/43667484/122691717-f9d4cc00-d263-11eb-9334-ea92b68f7b45.png)

只是一些地方需要修改一下

"如图,我们要找到一组A,B,满足上面3条规则。 对于规则1,我们在数组1中找任意A,然后根据规则1就能推算出对应的B的位置。 对于规则2,由于数组1和2都是有序数组,即X1

哈哈,用ppt画不出来这么漂亮的图,真实辛苦lz了。我只会刷题,可以提交pr吗?:)

![image](https://user-images.githubusercontent.com/44796561/116973201-c0192780-acee-11eb-9837-44acf9ee2857.png)