The document lists common data structures and algorithms categorized by difficulty and topic. It provides links to problems for each on LeetCode, including arrays, trees, binary, dynamic programming, graphs, intervals, linked lists, matrices, strings, and heaps. Over 100 problems in total are referenced from across these fundamental CS concepts.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
394 views6 pages
Easy Medium Hard: Array
The document lists common data structures and algorithms categorized by difficulty and topic. It provides links to problems for each on LeetCode, including arrays, trees, binary, dynamic programming, graphs, intervals, linked lists, matrices, strings, and heaps. Over 100 problems in total are referenced from across these fundamental CS concepts.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6
Easy Medium Hard
Array
1. Two Sum - https://leetcode.com/problems/two-sum/
2. Best Time to Buy and Sell Stock - https://leetcode.com/problems/best-time-to-buy-and-sell- stock/ 3. Contains Duplicate - https://leetcode.com/problems/contains- duplicate/ 4. Product of Array Except Self - https://leetcode.com/problems/product-of-array-except-self/ 5. Maximum Subarray - https://leetcode.com/problems/maximum- subarray/ 6. Maximum Product Subarray - https://leetcode.com/problems/maximum-product-subarray/ 7. Find Minimum in Rotated Sorted Array - https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ 8. Search in Rotated Sorted Array - https://leetcode.com/problems/search- in-rotated-sorted-array/ 9. 3Sum - https://leetcode.com/problems/3sum/ 10. Container With Most Water - https://leetcode.com/problems/container- with-most-water/
--- Tree
1. Maximum Depth of Binary Tree
- https://leetcode.com/problems/maximum-depth-of-binary- tree/ 2. Same Tree - https://leetcode.com/problems/same-tree/ 3. Invert/Flip Binary Tree - https://leetcode.com/problems/invert-binary-tree/ 4. Binary Tree Maximum Path Sum - https://leetcode.com/problems/binary-tree-maximum-path- sum/ 5. Binary Tree Level Order Traversal - https://leetcode.com/problems/binary-tree-level-order- traversal/ 6. Serialize and Deserialize Binary Tree - https://leetcode.com/problems/serialize-and-deserialize- binary-tree/ 7. Subtree of Another Tree - https://leetcode.com/problems/subtree-of-another-tree/ 8. Construct Binary Tree from Preorder and Inorder Traversal - https://leetcode.com/problems/construct-binary-tree-from- preorder-and-inorder-traversal/ 9. Validate Binary Search Tree - https://leetcode.com/problems/validate-binary-search-tree/ 10. Kth Smallest Element in a BST - https://leetcode.com/problems/kth-smallest-element-in-a-bst/ 11. Lowest Common Ancestor of BST - https://leetcode.com/problems/lowest-common-ancestor-of-a- binary-search-tree/ 12. Implement Trie (Prefix Tree) - https://leetcode.com/problems/implement-trie-prefix-tree/ 13. Add and Search Word - https://leetcode.com/problems/add- and-search-word-data-structure-design/ 14. Word Search II - https://leetcode.com/problems/word- search-ii/
---
Binary
1. Sum of Two Integers - https://leetcode.com/problems/sum-of-two-
integers/ 2. Number of 1 Bits - https://leetcode.com/problems/number-of-1-bits/ 3. Counting Bits - https://leetcode.com/problems/counting-bits/ 4. Missing Number - https://leetcode.com/problems/missing-number/ 5. Reverse Bits - https://leetcode.com/problems/reverse-bits/
1. Reverse a Linked List - https://leetcode.com/problems/reverse-linked-list/
2. Detect Cycle in a Linked List - https://leetcode.com/problems/linked-list- cycle/ 3. Merge Two Sorted Lists - https://leetcode.com/problems/merge-two- sorted-lists/ 4. Merge K Sorted Lists - https://leetcode.com/problems/merge- k-sorted-lists/ 5. Remove Nth Node From End Of List - https://leetcode.com/problems/remove-nth-node-from-end-of-list/ 6. Reorder List - https://leetcode.com/problems/reorder-list/
---
Matrix
1. Set Matrix Zeroes - https://leetcode.com/problems/set-matrix-zeroes/
1. Merge K Sorted Lists - https://leetcode.com/problems/merge-
k-sorted-lists/ 2. Top K Frequent Elements - https://leetcode.com/problems/top-k- frequent-elements/ 3. Find Median from Data Stream - https://leetcode.com/problems/find- median-from-data-stream/