watchpoints / weekly

Apache License 2.0
5 stars 2 forks source link

数据结构与算法第一期(2021-3-30-2021-4.7) #9

Open watchpoints opened 3 years ago

watchpoints commented 3 years ago

第一题:最小唯一前缀

思路 1 定义前缀tree的结构 2 插入操作:数据 3 遍历操作,如果遇到重复的,就是最小前缀。

输出: https://mp.weixin.qq.com/s/zWPHLcOfijMmg3W92qRPhg 扩展 212. 单词搜索 II

watchpoints commented 3 years ago

第二题:螺旋矩阵

思路;巧妙方法我不会,我只会最笨方法。

扩展:59. 螺旋矩阵 II

watchpoints commented 3 years ago

第三题:

watchpoints commented 3 years ago

第三题: