Skip to content
LeetCode Solutions in Python
323. Number Of Connected Components In An Undirected Graph
Initializing search
Home
Cheat Sheet
Common Patterns
Solutions
LeetCode Solutions in Python
Home
Cheat Sheet
Common Patterns
Common Patterns
Complexity Analysis
Binary Search
Two Pointers & Sliding Window
Bit Manipulation
Sorting
Linked Lists
Stacks & Queues
Intervals
Heaps
Trees
Graphs
Trie & Union Find
Backtracking
Greedy
Dynamic Programming
Combinatorics
Solutions
Solutions
Easy
Easy
1. Two Sum
13. Roman To Integer
14. Longest Common Prefix
20. Valid Parentheses
70. Climbing Stairs
94. Binary Tree Inorder Traversal
104. Maximum Depth Of Binary Tree
110. Balanced Binary Tree
125. Valid Palindrome
136. Single Number
141. Linked List Cycle
143. Reorder List
144. Binary Tree Preorder Traversal
190. Reverse Bits
191. Number Of 1 Bits
202. Is Happy
206. Reverse Linked List
226. Invert Binary Tree
252. Meeting Rooms
496. Next Greater Element
543. Diameter Of Binary Tree
637. Average Of Levels In Binary Tree
643. Maximum Average Subarray
746. Min Cost Climbing Stairs
1710. Maximum Units On Truck
1971. Find If Path Exists In Graph
Hard
Hard
4. Median Of Two Sorted Arrays
Medium
Medium
0. Reconstruct Itinerary
3. Longest Substring Without Repeating Characters
15. 3Sum
17. Letter Combinations Of A Phone Number
19. Remove Nth Node From End Of List
22. Generate Parentheses
29. Divide Two Integers
33. Search In Rotated Sorted Array
34. Find First And Last Position Of Element In Sorted Array
40. Combination Sum Ii
43. Multiply Strings
46. Permutations
49. Group Anagrams
53. Maximum Subarray
56. Merge Intervals
57. Insert Interval
62. Unique Paths
64. Minimum Path Sum
74. Search A 2D Matrix
78. Subsets
102. Binary Tree Level Order Traversal
116. Populating Next Right Pointers In Each Node
128. Longest Consecutive Sequence
130. Surrounded Regions
133. Clone Graph
137. Single Number 2
138. Copy List With Random Pointer
139. Word Break
141. Linked List Cycle
146. Lru Cache
150. Evaluate Reverse Polish Notation
153. Find Minimum In Rotated Sorted Array
167. Two Sum Ii Input Array Is Sorted
198. House Robber
200. Number Of Islands
201. Range Bitwise And
207. Course Schedule
210. Course Schedule Ii
213. House Robber
215. Kth Largest Element In An Array
230. Kth Smallest Element In A Bst
238. Product Of Array Except Self
253. Meeting Rooms Ii
286. Walls And Gates
287. Find The Duplicate Number
309. Best Time To Buy And Sell Stock With Cooldown
319. Bulbswitcher
322. Coin Change
323. Number Of Connected Components In An Undirected Graph
355. Design Twitter
417. Pacific Atlantic Water Flow
424. Longest Repeating Character Replacement
435. Non Overlapping Intervals
547. Number Of Province
567. Permutation In String
621. Task Scheduler
647. Palindromic Substrings
670. Maximum Swap
701. Insert Into A Binary Search Tree
739. Daily Temperatures
740. Delete And Earn
743. Network Delay Time
797. All Path From Source To Target
853. Car Fleet
875. Koko Eating Bananas
973. K Closest Points To Origin
981. Time Based Key Value Store
994. Rotting Oranges
1011. Capacity To Ship Packages Within D Days
1090. Shortest Path In Binary Matrix
1123. Lowest Common Anchestor Of Deepest Leaves
1448. Count Good Nodes In Binary Tree
1584. Min Cost To Connect All Points
1942. The Number Of The Smallest Unoccupide Chair
2483. Minimum Penalty For A Shop
323. Number Of Connected Components In An Undirected Graph
¶
Back to top