Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

👏🏻 leetcode solutions for Humans™

NotificationsYou must be signed in to change notification settings

tech-cow/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


yuzhoujr

公瑾现在提供以下服务哟!Contact me @ yu.zhou.jr@gmail.com
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

#TitleSolutionTimeSpaceVideo
21Merge Two Sorted ListsPythonO(n)O(n)
89Partition ListPythonO(n)O(n)
141Linked List CyclePythonO(n)O(1)
160Intersection of Two Linked ListsPythonO(n)O(1)
203Remove Linked List ElementsPythonO(n)O(1)
206Reverse Linked ListPythonO(n)O(1)
234Palindrome Linked ListPythonO(n)O(1)
83Remove Duplicates from Sorted ListPythonO(n)O(1)

LinkedList Medium

#TitleSolutionTimeSpaceVideo
2Add Two NumbersPythonO(n)O(n)
445Add Two Numbers IIPythonO(n)O(n)
142Linked List Cycle IIPythonO(n)O(1)📺
328Odd Even Linked ListPythonO(n)O(1)
143Reorder ListPythonO(n)O(1)
24Swap Nodes in PairsPythonO(n)O(1)
148Sort ListPythonO(nlogn)O(1)
61Rotate ListPythonO(n)O(1)
19Remove Nth Node From End of ListPythonO(n)O(1)📺
138Copy List with Random PointerPythonO(n)O(n)

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

#TitleSolutionTimeSpaceVideo
110Balanced Binary TreePythonO(N)O(h)
107Binary Tree Level Order Traversal IIPythonO(N)O(h)
112Path SumPythonO(N)O(h)📺
100Same TreePythonO(N)O(1)
101Symmetric TreePythonO(N)O(1)📺
104Maximum Depth of Binary TreePythonO(N)O(1)
108Convert Sorted Array to Binary Search TreePythonO(N)O(N)📺
111Minimum Depth of Binary TreePythonO(N)O(1)
235Lowest Common Ancestor of a Binary Search TreePythonO(N)O(1)
226Invert Binary TreePythonO(N)O(1)📺
543Diameter of Binary TreePythonO(N)O(h)📺
501Find Mode in Binary Search TreePythonO(N)O(N)📺
257Binary Tree PathsPythonO(N)O(N)📺
572Subtree of Another TreePythonO(S*T)O(1)📺
437Path Sum IIIPythonO(N^2)O(1)
404Sum of Left LeavesPythonO(N)O(1)📺
270Closest Binary Search Tree ValuePythonO(N)O(1)📺
563Binary Tree TiltPythonO(N)O(1)📺
538Convert BST to Greater TreePythonO(N)O(1)📺
637Average of Levels in Binary TreePythonO(N)O(1)

Tree Medium

#TitleSolutionTimeSpaceVideo
144Binary Tree Preorder TraversalPythonO(N)O(N)📺
102Binary Tree Level Order TraversalPythonO(N)O(N)📺
107Binary Tree Level Order Traversal IIPythonO(N)O(N)
515Find Largest Value in Each Tree RowPythonO(N)O(1)
236Lowest Common Ancestor of a Binary TreePythonO(N)O(1)📺
199Binary Tree Right Side ViewPythonO(N)O(N)📺
114Flatten Binary Tree to Linked ListPythonO(N)O(1)📺
230Kth Smallest Element in a BSTPythonO(N)O(1)📺
582Kill ProcessPythonO(N)O(N)📺

Backtrack Medium

#TitleSolutionTimeSpaceVideo
78SubsetsPythonO(N*(2^N))O(2^N)📺
90Subsets IIPythonO(N*(2^N))O(2^N)📺
46PermutationsPythonO(N*(N!))O(N!)📺
47Permutations IIPythonO(N*(N!))O(N!)📺
60Permutation SequencePythonO(N * (N!)O(N)
77CombinationsPythonO(N*(N!))O(N!)
39Combination SumPythonO(K * (2^N)O(N)📺
40Combination Sum IIPythonO(K * (2^N)O(N)📺
216Combination Sum IIIPythonO(K * (2^N)O(N)
17Letter Combinations of a Phone NumberPythonO(N*(4^N))O(N)📺
131Palindrome PartitioningPythonO(N*(2^N))O(N)📺

Greedy Medium

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

Dynamic Programming Easy

#TitleSolutionTimeSpaceVideo
70Climbing StairsPythonO(N)O(1)Easy
53Maximum SubarrayPythonO(N)O(N)Easy
198House RobberPythonO(N)O(N)Easy

Dynamic Programming Medium

#TitleSolutionTimeSpaceVideo
64Minimum Path SumPythonO(N^2)O(M*N)📺
62Unique PathsPythonO(N^2)O(M*N)Reference #64
55Jump GamePythonO(N^2)O(1)TLE with DP/Use Greedy for O(N) Solution
45Jump Game IIPythonO(N^2)O(1)TLE with DP/Use Greedy for O(N) Solution
300Longest Increasing SubsequencePythonO(N^2)O(1)Use Binary-Search for NlogN Solution

BitMap Easy

#TitleSolutionTimeSpaceVideo
136Single NumberPythonO(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 🌱


homeyuzhoujr.com  · github@yuzhoujr  · linkedin@yuzhoujr


[8]ページ先頭

©2009-2025 Movatter.jp