以下记录的是各个题较好的视频讲解地址及视频中的代码。
持续更新中。
每一道题都必须要分析时间和空间复杂度。
有时还需要写test case
https://leetcode-cn.com/problems/two-sum/solution/dong-hua-tu-jie-suan-fa-liang-shu-zhi-he-fu-shi-pi/
方法一:Hash Map
https://leetcode-cn.com/problems/add-two-numbers/solution/javashi-pin-jiang-jie-xi-lie-add-two-numbers-by-se/
直接位和位相加,注意进位addOne
https://www.youtube.com/watch?v=9VcYiqTqzUY
双指针,注意指针的移动细节
https://www.youtube.com/watch?v=zGc152m0wPw
Java
需单独分析溢出和负数的情况
https://www.youtube.com/watch?v=4eV6f9mmBQE
Java
https://www.bilibili.com/video/av66123241/
C++
负数一定不是回文数
https://www.youtube.com/watch?v=07W3b5SxeQ8
将题目中给出的特殊规则的六种情况单独做if判断,符合这六种情况的就减去对应的值,其余的情况就依次加上各个字母对应的数字。
https://www.youtube.com/watch?v=2NFQd-jyX48
Java版本
栈,将对应的右括号放到栈中,遇到了对应的右括号就pop。有三种情况是return false的。
https://www.youtube.com/watch?v=mq8qDefE1TM
Python版本
栈
https://www.bilibili.com/video/av29186709/
Java
Hash Map
https://www.youtube.com/watch?v=WVfNtGL7ROM
Java
双指针
https://www.bilibili.com/video/BV1at41117sw
例1 30min开始 迭代法
https://www.youtube.com/watch?v=esl_A_pzBcg
https://www.bilibili.com/video/av74604888/
JavaScript
记录到目前为止的最小值和最大利润
https://www.youtube.com/watch?v=bxCb37nLXWM
https://www.youtube.com/watch?v=XzpuuGevwRc
https://www.youtube.com/watch?v=q1Njd3NWvlY
https://www.bilibili.com/video/BV1at41117sw
例1 22min处 迭代法
https://www.bilibili.com/video/BV1U7411A75v
递归法和迭代法
https://www.youtube.com/watch?v=esl_A_pzBcg
迭代法
https://www.youtube.com/watch?v=zkTOIVUdW-I
https://www.bilibili.com/video/av38557911/
该视频中有C++, Java, Python三种语言的版本
C++和Java是静态语言,Python是动态语言
https://www.youtube.com/watch?v=zyskis1Gw0c
介绍了最小堆和快排
https://www.bilibili.com/video/av57068058/
https://www.bilibili.com/video/av49062862/
https://www.bilibili.com/video/BV1at41117sw?p=2
例1 13min处
https://www.youtube.com/watch?v=oiX3mqcAK0s
https://www.youtube.com/watch?v=teJIpKD1MuQ
https://www.youtube.com/watch?v=boTZv0hqNac
https://www.bilibili.com/video/av93298886/
https://www.bilibili.com/video/av82946524?from=search&seid=2720542669988055252
https://www.youtube.com/watch?v=2SXqBsTR6a8
https://www.bilibili.com/video/av88006091/
https://www.youtube.com/watch?v=g4Qy83toSzc
https://www.youtube.com/watch?v=anK-VjOIPhw
讲了两种方法
https://www.youtube.com/watch?v=jUpuIio_oYo
https://www.bilibili.com/video/av60794787/
https://www.youtube.com/watch?v=3n0_pPEWJ10
https://www.bilibili.com/video/av89351484/
https://www.youtube.com/watch?v=rkV_no6QTFs
https://www.youtube.com/watch?v=q0v0jafL6PU
https://www.bilibili.com/video/av840069123/
https://www.bilibili.com/video/av62810942/
https://www.bilibili.com/video/av62810942/
https://www.youtube.com/watch?v=OtqN9siio0g
https://www.bilibili.com/video/BV1at41117sw?p=10
例6 大概在147min处 有两种方法
https://www.youtube.com/watch?v=2k_rS_u6EBk
有效括号的成立条件:(1) 左括号与右括号数量相等 (2)任何位置之前的左括号多于右括号
https://www.youtube.com/watch?v=YSRUTMThBfU
https://www.youtube.com/watch?v=Ggzbo9eVrLU
https://www.youtube.com/watch?v=oL6mRyTn56M
https://www.youtube.com/watch?v=z3hu2Be92UA
https://www.bilibili.com/video/BV1at41117sw?p=10
例4 82min处
https://www.youtube.com/watch?v=-i2BFAU25Zk
该题最推荐看题解(非视频)
https://leetcode-cn.com/problems/counting-bits/solution/hen-qing-xi-de-si-lu-by-duadua/
https://www.bilibili.com/video/av76764610/
https://www.bilibili.com/video/av37684578/
该题很重要
https://www.youtube.com/watch?v=NAYPGalyLo4
https://www.youtube.com/watch?v=lm6pBga98-w
https://www.bilibili.com/video/av82804978/
https://www.bilibili.com/video/BV1vx411d7pf/?spm_id_from=333.788.videocard.0
https://www.youtube.com/watch?v=fFAR688RLko
https://www.bilibili.com/video/av86753864/
https://www.youtube.com/watch?v=UwpvInpgFmo
https://www.youtube.com/watch?v=u9LE_7apB38
https://www.youtube.com/watch?v=JtJVMhs-6aw
https://www.youtube.com/watch?v=r6I-ikllNDM
https://www.youtube.com/watch?v=5gpIN9Yf7C4
https://www.bilibili.com/video/av92489544/
https://www.youtube.com/watch?v=AqfSV2B_TMY
https://www.youtube.com/watch?v=86fQQ7rVGxA
https://www.youtube.com/watch?v=MC4BMXlBwRQ
https://www.youtube.com/watch?v=CKJHSUbMzBo
https://www.youtube.com/watch?v=RNaO23ETjhM
https://www.youtube.com/watch?v=r6Wz4W1TbuI
https://www.youtube.com/watch?v=YoEPWtXmkD4
https://www.youtube.com/watch?v=VuezJmuIyU4
https://www.youtube.com/watch?v=3vZV-6qPDmE
https://www.youtube.com/watch?v=aYfwus5T3Bs
三种方法
https://www.youtube.com/watch?v=f0IY7_WpSB4
https://www.youtube.com/watch?v=8wHH9txAK34
https://www.youtube.com/watch?v=EmVsf2sMNiU
https://www.youtube.com/watch?v=YCD_iYxyXoo
https://www.youtube.com/watch?v=OQKpjr13VNk
https://www.bilibili.com/video/av78687272/
https://leetcode-cn.com/problems/daily-temperatures/solution/leetcode-tu-jie-739mei-ri-wen-du-by-misterbooo/
https://www.youtube.com/watch?v=uVXjp5Qwfe8
https://www.youtube.com/watch?v=VoOJdqHe8bE
https://www.youtube.com/watch?v=Dumq-rceuac
https://www.bilibili.com/video/av99751496/
三个指针,将最大的元素添加到A数组的最后
https://www.bilibili.com/s/video/BV137411L7wc