Skip to content

bikaylee/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode 2022 Notes

Problems Level Topics
339. Nested List Weight Sum Medium Depth First Search Breadth First Search
Problems Level Topics
228. Summary Ranges Easy Array
1464. Maximum Product of Two Elements in an Array Easy Array Heap (Priority Queue) Sorting
Problems Level Topics
392. Is Subsequence Easy Array Two Pointers Dynamic Programming
408. Valid Word Abbreviation Easy String Two Pointers
680. Valid Palindrome II Easy String Two Pointers Greedy
2185. Counting Words With a Given Prefix Easy Array String
Problems Level Topics
246. Strobogrammatic Number Easy String Hash Table Two Pointers
1347. Minimum Number of Steps to Make Two Strings Anagram Medium String Hash Table Counting
1570. Dot Product of Two Sparse Vectors Medium Array Hash Table Two Pointers
2186. Minimum Number of Steps to Make Two Strings Anagram II Medium String Hash Table Counting
Problems Level Topics
346. Moving Average from Data Stream Medium Array Queue
Problems Level Topics
71. Simplify Path Medium String Stack
921. Minimum Add to Make Parentheses Valid Medium String Stack Greedy
1047. Remove All Adjacent Duplicates In String Easy String Stack
1249. Minimum Remove to Make Valid Parentheses Medium String Stack
1762. Buildings With an Ocean View Medium Array Stack Monotonic Stack
Problems Level Topics
215. Kth Largest Element in an Array Medium Array Heap (Priority Queue) Divide and Conquer Quickselect Sorting
973. K Closest Points to Origin Medium Array Heap (Priority Queue) Math Divide and Conquer Quickselect Sorting
Problems Level Topics
162. Find Peak Element Medium Array Binary Search
528. Random Pick with Weight Medium Array Prefix Sum Binary Search Math
1064. Fixed Point Easy Array Binary Search
2187. Minimum Time to Complete Trips Medium Array Binary Search
Problems Level Topics
94. Binary Tree Inorder Traversal Easy Tree Binary Tree Depth First Search Stack
98. Validate Binary Search Tree (could have iterative approach) Medium Tree Binary Tree Depth First Search Binary Search Tree
108. Convert Sorted Array to Binary Search Tree Easy Array Tree Binary Tree Depth First Search Binary Search Tree Divide and Conquer
100. Same Tree Easy Tree Binary Tree Depth First Search Breadth First Search
101. Symmetric Tree Easy Tree Binary Tree Depth First Search Breadth First Search
102. Binary Tree Level Order Traversal Medium Tree Binary Tree Breadth First Search
104. Maximum Depth of Binary Tree Easy Tree Binary Tree Depth First Search Breadth First Search
110. Balanced Binary Tree Easy Tree Binary Tree Depth First Search
111. Minimum Depth of Binary Tree Easy Tree Binary Tree Depth First Search Breadth First Search
112. Path Sum Easy Tree Binary Tree Depth First Search Breadth First Search
114. Flatten Binary Tree to Linked List Medium Tree Binary Tree Depth First Search Stack Linked List
116. Populating Next Right Pointers in Each Node Medium Tree Binary Tree Depth First Search Breadth First Search Binary Search Tree Linked List
129. Sum Root to Leaf Numbers Medium Tree Binary Tree Depth First Search
144. Binary Tree Preorder Traversal Easy Tree Binary Tree Depth First Search Stack
145. Binary Tree Postorder Traversal Easy Tree Binary Tree Depth First Search Stack
173. Binary Search Tree Iterator Medium Tree Binary Tree Binary Search Tree Stack
199. Binary Tree Right Side View Medium Tree Binary Tree Depth First Search Breadth First Search
230. Kth Smallest Element in a BST Medium Tree Binary Tree Depth First Search Binary Search Tree
235. Lowest Common Ancestor of a Binary Search Tree Easy Tree Binary Tree Depth First Search Breadth First Search
236. Lowest Common Ancestor of a Binary Tree Medium Tree Binary Tree Depth First Search
257. Binary Tree Paths Easy String Tree Binary Tree Depth First Search Backtracking
314. Binary Tree Vertical Order Traversal Medium Tree Binary Tree Depth First Search Breadth First Search Hash Table
366. Find Leaves of Binary Tree Medium Tree Binary Tree Depth First Search
426. Convert Binary Search Tree to Sorted Doubly Linked List Medium Tree Binary Tree Depth First Search Breadth First Search Stack Linked List Doubly-Linked List
437. Path Sum III Medium Tree Binary Tree Depth First Search
450. Delete Node in a BST Medium Tree Binary Tree Binary Search Tree
543. Diameter of Binary Tree Easy Tree Binary Tree Depth First Search
545. Boundary of Binary Tree Medium Tree Binary Tree Depth First Search
572. Subtree of Another Tree Easy Tree Binary Tree Depth First Search
617. Merge Two Binary Trees Easy Tree Binary Tree Depth First Search Breadth First Search
938. Range Sum of BST Easy Tree Binary Tree Depth First Search
965. Univalued Binary Tree Easy Tree Binary Tree Depth First Search Breadth First Search
1110. Delete Nodes And Return Forest Medium Tree Binary Tree Depth First Search
1161. Maximum Level Sum of a Binary Tree Medium Tree Binary Tree Depth First Search Breadth First Search
1367. Linked List in Binary Tree Medium Tree Binary Tree Depth First Search Breadth First Search Linked List
1382. Balance a Binary Search Tree Medium Tree Binary Tree Depth First Search Binary Search Tree Greedy Divide and Conquer
1448. Count Good Nodes in Binary Tree Medium Tree Binary Tree Depth First Search Breadth First Search
1469. Find All The Lonely Nodes Easy Tree Binary Tree Depth First Search Breadth First Search
1644. Lowest Common Ancestor of a Binary Tree II Medium Tree Binary Tree Depth First Search
1650. Lowest Common Ancestor of a Binary Tree III Medium Tree Binary Tree Depth First Search Breadth First Search
Problem Level Topic
3. Longest Substring Without Repeating Characters Medium String Sliding Window Hash Table
239. Sliding Window Maximum Hard Array Queue Heap (Priority Queue) Sliding Window Monotonic Queue
76. Minimum Window Substring Hard String Sliding Window Hash Table
1004. Max Consecutive Ones III Medium Array Sliding Window Prefix Sum Binary Search
992. Subarrays with K Different Integers Hard Array Sliding Window Hash Table Counting
1423. Maximum Points You Can Obtain from Cards Medium Array Sliding Window Prefix Sum
219. Contains Duplicate II Easy Array Sliding Window Hash Table
1248. Count Number of Nice Subarrays Medium Array Sliding Window Hash Table Math
1151. Minimum Swaps to Group All 1's Together Medium Array Sliding Window
438. Find All Anagrams in a String Medium String Sliding Window Hash Table
340. Longest Substring with At Most K Distinct Characters Medium String Sliding Window Hash Table
424. Longest Repeating Character Replacement Medium String Sliding Window Hash Table
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Medium Array Queue Sliding Window Heap (Priority Queue) Ordered Set Monotonic Queue
487. Max Consecutive Ones II Medium Array Sliding Window Dynamic Programming
1100. Find K-Length Substrings With No Repeated Characters Medium String Sliding Window Hash Table

Releases

No releases published

Packages

No packages published