Collection of LeetCode questions to ace the coding interview! - Created using LeetHub.
LCUS (leetcode.com) = Leetcode United States LCCN (leetcode-cn.com) = Leetcode China AC = Accepted Code WA = Wrong Answer OJ = Online Judge TC = Total Compensation TLE = Time Limit Exceeded MLE = Memory Limit Exceeded YOLO=You Only Look/Live Once
- first 50 udemy: https://github.com/cissieAB/Udemy_LeetCodeInPython/tree/afb07219215250401d97de00a2592a54a1ca2e27
- David's LeetCode Practice with pytest: https://github.com/daviddwlee84/LeetCode/tree/baf2bdc8b60f3b0a51cb3816aa968bf518e4b7f9
- 花花酱千题时代刷题攻略 https://docs.google.com/spreadsheets/d/1SbpY-04Cz8EWw3A_LBUmDEXKUMO31DBjfeMoA0dlfIA/edit#gid=126913158
- 负雪明烛常考百题 2021-12-27 https://blog.csdn.net/fuxuemingzhu/article/details/122164511?spm=1001.2014.3001.5501
- 残酷刷题群群主wisdompeak(资深群友如lee215) https://github.com/wisdompeak/LeetCode
- 极客大学 10周 算法训练营 https://github.com/ppd0705/10-week-algorithm-excercise
- Linked list: 234, good review on all tricks https://github.com/cindyyj/leetcode_solutions/blob/daf32b43d167736650092850dd06782ae07aba33/234-palindrome-linked-list/234-palindrome-linked-list.py
- template: https://ojeveryday.github.io/AlgoWiki/#/BinarySearch/README
- https://github.com/sunjianbo945/leetcode/blob/dca40686c6a280bd394feb8e6e78d40eecf854b9/src/first_hundred_liked/3_Longest_Substring_Without_Repeating_Characters.py
def main():
print(Solution().lengthOfLongestSubstring("abcabccc"))
if __name__=='__main__':
main()
- 876 find middle of linked list: includes create, print LL and test https://leetcode-cn.com/problems/middle-of-the-linked-list/solution/kuai-man-zhi-zhen-zhu-yao-zai-yu-diao-shi-by-liwei/
- 162 https://leetcode.com/problems/find-peak-element/discuss/50259/My-clean-and-readable-python-solution
- 350, great use of counter in solution! https://github.com/cindyyj/leetcode_solutions/blob/main/350-intersection-of-two-arrays-ii/350-intersection-of-two-arrays-ii.py
-
@lru_cache
- 青蛙与缓存:简化实用版动态规划 https://github.com/yifeitao/yifeitao.github.io/blob/21034b6dcfc6b6e6a44c6c4579d332a90064677e/_posts/2019-04-23-frog-and-cache.md
- 算法笔记:使用函数缓存应对复杂的推导和动态规划 https://github.com/coder-baymax/blog/blob/4511352e5a7ebf63ef645bde41c9063c7d5ac764/_posts/2020-09-14-leetcode-magic-lru-cache.md
- functools --- 高阶函数和可调用对象上的操作https://github.com/BIAOXYZ/myNotes/blob/8c49bd6e138a73a37ad69a080dfc7454142b2fc5/programming_notes/programming_languages/prog_lang_python/Python_packages/Functional_Programming_Modules/functools/README.md
-
itertools --- 为高效循环而创建迭代器的函数 https://github.com/BIAOXYZ/myNotes/blob/8c49bd6e138a73a37ad69a080dfc7454142b2fc5/programming_notes/programming_languages/prog_lang_python/Python_packages/Functional_Programming_Modules/itertools/README.md