Closed luchaohai closed 4 years ago
1.两数之和(简单) https://leetcode-cn.com/problems/two-sum/solution/1liang-shu-zhi-he-by-notmaster/ 备注:久闻 leetcode 大名,但是今天才正式使用,所以还花了一点时间研究软件本身,先立个目标,训练营期间计划每天一题。因为本题难度简单,所以实际上还做了第二题【两数相加(中等)】,第二题难度增加不少,本地调试能过,提交老是过不了,准备研学习下其他人的多种解法后再写题解。
167.两数之和-ii-输入有序数组
【1】两数之和 解题思路: 利用两次循环,拿出数组的一项,和数组的其余项求和,再和目标值对比 个人感受是比较通俗的解法,肯定也不是最优答案 需要花时间了解一下时间复杂度,空间复杂度,找到性能最好的解法 https://leetcode-cn.com/problems/two-sum/solution/1-liang-shu-zhi-he-walle-algorithm-journey-by-xiao/ 刚开始接触算法领域,望各位大佬多多指教
100.相同的树 用于训练深度优先算法(DFS),DFS算法可用于树/图等数据结构的遍历 https://leetcode-cn.com/problems/same-tree/solution/xiang-tong-de-shu-dfsjie-fa-shi-zhan-by-mi-le-qiu-/
v1.1版运营结束
202.快乐数 https://leetcode-cn.com/problems/happy-number/solution/kuai-le-shu-ku-xing-seng-by-kuxingseng/