tech-cow/leetcode

👏🏻 leetcode solutions for Humans™

Python

1,349

192 commits

updated Apr 20, 2021

See the code

README


yuzhoujr

公瑾现在提供以下服务哟!Contact me @ [email protected]
http://yuzhoujr.com/legacy/dummynode.pdf


Mock Interview 经验 + 反馈

Journey

时间线




Array Easy

#TitleSolutionTimeSpaceVideo
624Maximum Distance in ArraysPythonO(n)O(1)

Array Medium

#TitleSolutionTimeSpaceVideo
3Longest Substring Without Repeating CharactersPythonO(n)O(n)
463Island PerimeterPythonO(n^2)O(1)

Hash Table Easy

#TitleSolutionTimeSpaceVideo
1Two SumPythonO(n)O(n)📺
242Valid AnagramPythonO(n)O(n)

Linked List Easy

LinkedList Medium

Stacks Easy

#TitleSolutionTimeSpaceVideo
155Min StackPythonO(1)O(n)
225Implement Stack using QueuesPythonpush/pop: O(1) top:O(n)O(n)
20Valid ParenthesesPythonO(n)O(n)
346Moving Average from Data StreamPythonO(1)O(n)

Tree Easy

Tree Medium

Backtrack Medium

#TitleSolutionTimeSpaceVideo
78SubsetsPython O(N*(2^N))O(2^N)📺
90Subsets IIPython O(N*(2^N))O(2^N)📺
46PermutationsPython O(N*(N!))O(N!)📺
47Permutations IIPython O(N*(N!))O(N!)📺
60Permutation SequencePython O(N * (N!)O(N)
77CombinationsPython O(N*(N!))O(N!)
39Combination SumPython O(K * (2^N)O(N)📺
40Combination Sum IIPython O(K * (2^N)O(N)📺
216Combination Sum IIIPython O(K * (2^N)O(N)
17Letter Combinations of a Phone NumberPython O(N*(4^N))O(N)📺
131Palindrome PartitioningPython O(N*(2^N))O(N)📺

Greedy Medium

#TitleSolutionTimeSpaceVideo
452Minimum Number of Arrows to Burst BalloonsPython O(N)O(1)

Dynamic Programming Easy

#TitleSolutionTimeSpaceVideo
70Climbing StairsPython O(N)O(1)Easy
53Maximum SubarrayPython O(N)O(N)Easy
198House RobberPython O(N)O(N)Easy

Dynamic Programming Medium

#TitleSolutionTimeSpaceVideo
64Minimum Path SumPython O(N^2)O(M*N)📺
62Unique PathsPython O(N^2)O(M*N)Reference #64
55Jump GamePython O(N^2)O(1)TLE with DP/Use Greedy for O(N) Solution
45Jump Game IIPython O(N^2)O(1)TLE with DP/Use Greedy for O(N) Solution
300Longest Increasing SubsequencePython O(N^2)O(1)Use Binary-Search for NlogN Solution

BitMap Easy

#TitleSolutionTimeSpaceVideo
136Single NumberPython O(N)O(1)📺

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

🌱 MIT @ Yu Zhou 🌱


home yuzhoujr.com  ·  github @yuzhoujr  ·  linkedin @yuzhoujr

algiorithimcs
algorithm
algorithm-challenges
algorithm-competitions
algorithms
algorithms-and-data-structures
algorithms-datastructures
google
interview
interview-practice
interview-preparation
interview-questions
interview-test
leetcode
leetcode-python
leetcode-solutions
python
python-leetcode

tech-cow/leetcode

👏🏻 leetcode solutions for Humans™

Python

1,349

192 commits

updated Apr 20, 2021

See the code

README


yuzhoujr

公瑾现在提供以下服务哟!Contact me @ [email protected]
http://yuzhoujr.com/legacy/dummynode.pdf


Mock Interview 经验 + 反馈

Journey

时间线




Array Easy

#TitleSolutionTimeSpaceVideo
624Maximum Distance in ArraysPythonO(n)O(1)

Array Medium

#TitleSolutionTimeSpaceVideo
3Longest Substring Without Repeating CharactersPythonO(n)O(n)
463Island PerimeterPythonO(n^2)O(1)

Hash Table Easy

#TitleSolutionTimeSpaceVideo
1Two SumPythonO(n)O(n)📺
242Valid AnagramPythonO(n)O(n)

Linked List Easy

LinkedList Medium

Stacks Easy

#TitleSolutionTimeSpaceVideo
155Min StackPythonO(1)O(n)
225Implement Stack using QueuesPythonpush/pop: O(1) top:O(n)O(n)
20Valid ParenthesesPythonO(n)O(n)
346Moving Average from Data StreamPythonO(1)O(n)

Tree Easy

Tree Medium

Backtrack Medium

#TitleSolutionTimeSpaceVideo
78SubsetsPython O(N*(2^N))O(2^N)📺
90Subsets IIPython O(N*(2^N))O(2^N)📺
46PermutationsPython O(N*(N!))O(N!)📺
47Permutations IIPython O(N*(N!))O(N!)📺
60Permutation SequencePython O(N * (N!)O(N)
77CombinationsPython O(N*(N!))O(N!)
39Combination SumPython O(K * (2^N)O(N)📺
40Combination Sum IIPython O(K * (2^N)O(N)📺
216Combination Sum IIIPython O(K * (2^N)O(N)
17Letter Combinations of a Phone NumberPython O(N*(4^N))O(N)📺
131Palindrome PartitioningPython O(N*(2^N))O(N)📺

Greedy Medium

#TitleSolutionTimeSpaceVideo
452Minimum Number of Arrows to Burst BalloonsPython O(N)O(1)

Dynamic Programming Easy

#TitleSolutionTimeSpaceVideo
70Climbing StairsPython O(N)O(1)Easy
53Maximum SubarrayPython O(N)O(N)Easy
198House RobberPython O(N)O(N)Easy

Dynamic Programming Medium

#TitleSolutionTimeSpaceVideo
64Minimum Path SumPython O(N^2)O(M*N)📺
62Unique PathsPython O(N^2)O(M*N)Reference #64
55Jump GamePython O(N^2)O(1)TLE with DP/Use Greedy for O(N) Solution
45Jump Game IIPython O(N^2)O(1)TLE with DP/Use Greedy for O(N) Solution
300Longest Increasing SubsequencePython O(N^2)O(1)Use Binary-Search for NlogN Solution

BitMap Easy

#TitleSolutionTimeSpaceVideo
136Single NumberPython O(N)O(1)📺

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

🌱 MIT @ Yu Zhou 🌱


home yuzhoujr.com  ·  github @yuzhoujr  ·  linkedin @yuzhoujr

algiorithimcs
algorithm
algorithm-challenges
algorithm-competitions
algorithms
algorithms-and-data-structures
algorithms-datastructures
google
interview
interview-practice
interview-preparation
interview-questions
interview-test
leetcode
leetcode-python
leetcode-solutions
python
python-leetcode

Significant stargazers

ChunyuanLI

514 followers · starred Feb 2021

Leon Qiu

3 followers · starred Dec 2017

Xiaoyang Cai

0 followers · starred May 2023