--- layout: page title: Blind 100 --- Array ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Two Sum ](https://leetcode.com/problems/two-sum/) | Solved | n/a | [brute force + one pass](/problems/twoSum.html) | | | [Best Time to Buy and Sell Stock ](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/) | Solved | 10 min to code | [1 pass solution](/problems/buyAndSellStock.html) | May17 | | [Contains Duplicate ](https://leetcode.com/problems/contains-duplicate/) | Solved | 5min | [hashset/sorting](/problems/containsDuplicates) | | | [Product of Array Except Self ](https://leetcode.com/problems/product-of-array-except-self/) | | | | | | [Maximum Subarray ](https://leetcode.com/problems/maximum-subarray/) | Solved | 15 min to code | [kadane's algo](/problems/maxSubarray.html) | May 26 | | [Maximum Product Subarray ](https://leetcode.com/problems/maximum-product-subarray/) | Attempted | n/a | [variation of kadane's algo](/problems/maxProductSubarray.html) | | | [Find Minimum in Rotated Sorted Array ](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/) | Attempted | n/a | [binary search](/problems/findMinInSortedArray.html) | | | [Search in Rotated Sorted Array ](https://leetcode.com/problems/search-in-rotated-sorted-array/) | | | | | | [3Sum ](https://leetcode.com/problems/3sum/) | | | | | | [Container With Most Water ](https://leetcode.com/problems/container-with-most-water/) | Solved | 25min | [2 pointer](/problems/waterWithMostWater) | may27 | --- Binary ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Sum of Two Integers ](https://leetcode.com/problems/sum-of-two-integers/) | | | | | | [Number of 1 Bits ](https://leetcode.com/problems/number-of-1-bits/) | Solved | 5min | [loop and bit mask](/problems/numOnes) | may14 | try approach #2 in LC next time | [Counting Bits ](https://leetcode.com/problems/counting-bits/) | Attempted | n/a | [dp](/problems/countOnesInArray) | may14 | | [Missing Number ](https://leetcode.com/problems/missing-number/) | Solved | 5min | [sort/hashmap/xor/gauss](/problems/missingNumber) | | | [Reverse Bits ](https://leetcode.com/problems/reverse-bits/) | | | | | --- Dynamic Programming ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Climbing Stairs ](https://leetcode.com/problems/climbing-stairs/) | Solved | 1hr | [fib](/problems/climbingStairs) | may16 | | [Coin Change ](https://leetcode.com/problems/coin-change/) | Attempted | 1hr | [dp](/problems/coinChange) | may19 | | [Longest Increasing Subsequence ](https://leetcode.com/problems/longest-increasing-subsequence/) | | | | | | [Longest Common Subsequence ](https://leetcode.com/problems/longest-common-subsequence/) | Attemped | may25 | [dp](/problems/longestCommonSubsequence) | | | [Word Break Problem ](https://leetcode.com/problems/word-break/) | | | | | | [Combination Sum ](https://leetcode.com/problems/combination-sum-iv/) | | | | | | [House Robber ](https://leetcode.com/problems/house-robber/) | Solved | 20min | [dp](/problems/houseRobber) | may26 | | [House Robber II ](https://leetcode.com/problems/house-robber-ii/) | Solved | 20m | [extention of hourse robber 1](/problems/houseRobber2) | may27 | | [Decode Ways ](https://leetcode.com/problems/decode-ways/) | | | | | | [Unique Paths ](https://leetcode.com/problems/unique-paths/) | | | | | | [Jump Game ](https://leetcode.com/problems/jump-game/) | | | | | --- Graph ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Clone Graph ](https://leetcode.com/problems/clone-graph/) | | | | | | [Course Schedule ](https://leetcode.com/problems/course-schedule/) | | | | | | [Pacific Atlantic Water Flow ](https://leetcode.com/problems/pacific-atlantic-water-flow/) | | | | | | [Number of Islands ](https://leetcode.com/problems/number-of-islands/) | Solved | 15m | [flood fill](/problems/numIslands) | may28 | | [Longest Consecutive Sequence ](https://leetcode.com/problems/longest-consecutive-sequence/) | | | | | | [Alien Dictionary (Leetcode Premium) ](https://leetcode.com/problems/alien-dictionary/) | | | | | | [Graph Valid Tree (Leetcode Premium) ](https://leetcode.com/problems/graph-valid-tree/) | | | | | | [Number of Connected Components in an Undirected Graph (Leetcode Premium) ](https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/) | | | | | --- Interval ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Insert Interval ](https://leetcode.com/problems/insert-interval/) | | | | | | [Merge Intervals ](https://leetcode.com/problems/merge-intervals/) | Solved | half day | [solution](/problems/mergeIntervals) | | | [Non Overlapping Intervals](https://leetcode.com/problems/non-overlapping-intervals/) | | | | | | [Meeting Rooms (Leetcode Premium) ](https://leetcode.com/problems/meeting-rooms/) | | | | | | [Meeting Rooms II (Leetcode Premium) ](https://leetcode.com/problems/meeting-rooms-ii/) | | | | | --- Linked List ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Reverse a Linked List ](https://leetcode.com/problems/reverse-linked-list/) | Solved | 10min | [iteratively](/problems/reverseLLiterative) | may13 | try recursive | [Detect Cycle in a Linked List ](https://leetcode.com/problems/linked-list-cycle/) | Solved | 10min | [hashmap](/problems/llcycle)
[floyd](/problems/llcycle) | may13 | | [Merge Two Sorted Lists ](https://leetcode.com/problems/merge-two-sorted-lists/) | Solved | 30m | [iteratively](/problems/mergeSortedLLiter)
[recur](/problems/mergeSortedLLrecur) | iter-may22
recur-may14 | | [Merge K Sorted Lists ](https://leetcode.com/problems/merge-k-sorted-lists/) | | | | | | [Remove Nth Node From End Of List ](https://leetcode.com/problems/remove-nth-node-from-end-of-list/) | | | | | | [Reorder List ](https://leetcode.com/problems/reorder-list/) | | | | | --- Matrix ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Set Matrix Zeroes ](https://leetcode.com/problems/set-matrix-zeroes/) | attempted | 2hrs | [solution](/problems/setMatrixZeros) | may29 | there are other more efficient sols in leetcode solutions artc le page | [Spiral Matrix ](https://leetcode.com/problems/spiral-matrix/) | | | | | | [Rotate Image ](https://leetcode.com/problems/rotate-image/) | Solved | 2hrs | [transpose and flip horizontally](/problems/rotateImage.html) | Apr29 | fav problem | [Word Search ](https://leetcode.com/problems/word-search/) | Attempted | n/a | [solution](/problems/wordSearch) | | | [Matrix Search ](https://leetcode.com/problems/search-a-2d-matrix/) | Attempted | n/a | [binary search](/problems/matrixSearch) | | --- String ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Longest Substring Without Repeating Characters ](https://leetcode.com/problems/longest-substring-without-repeating-characters/) | Attempted | n/a | [sliding window](/problems/longestSubstringWithoutRepeatingChars) | may14 | | [Longest Repeating Character Replacement ](https://leetcode.com/problems/longest-repeating-character-replacement/) | | | | | | [Minimum Window Substring ](https://leetcode.com/problems/minimum-window-substring/) | | | | | | [Valid Anagram ](https://leetcode.com/problems/valid-anagram/) | | | | | | [Group Anagrams ](https://leetcode.com/problems/group-anagrams/) | | | | | | [Valid Parentheses ](https://leetcode.com/problems/valid-parentheses/) | | | | | | [Valid Palindrome ](https://leetcode.com/problems/valid-palindrome/) | | | | | | [Longest Palindromic Substring ](https://leetcode.com/problems/longest-palindromic-substring/) | | | | | | [Palindromic Substrings ](https://leetcode.com/problems/palindromic-substrings/) | | | | | | [Encode and Decode Strings (Leetcode Premium) ](https://leetcode.com/problems/encode-and-decode-strings/) | | | | | --- Tree ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Maximum Depth of Binary Tree ](https://leetcode.com/problems/maximum-depth-of-binary-tree/) | Solved | n/a | [recursion](/problems/maxDepth.html) | | | [Same Tree ](https://leetcode.com/problems/same-tree/) | Solved | n/a | [recursion](/problems/isSameTree) | may12 | | [Invert/Flip Binary Tree ](https://leetcode.com/problems/invert-binary-tree/) | Solved | 10min | [recursion](/problems/invertTree) | | | [Binary Tree Maximum Path Sum ](https://leetcode.com/problems/binary-tree-maximum-path-sum/) | | | | | | [Binary Tree Level Order Traversal ](https://leetcode.com/problems/binary-tree-level-order-traversal/) | Solved | n/a | [bfs](/problems/bfs.html) | may12 | | [Serialize and Deserialize Binary Tree ](https://leetcode.com/problems/serialize-and-deserialize-binary-tree/) | Attemped | n/a | [solution](/problems/serializeTree) | | | [Subtree of Another Tree ](https://leetcode.com/problems/subtree-of-another-tree/) | Solved | n/a | [recursion](/problems/isSubtree.html) | | | [Construct Binary Tree from Preorder and Inorder Traversal ](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) | | | | | | [Validate BST ](https://leetcode.com/problems/validate-binary-search-tree/) | Attempted | n/a | [recursion and pass limits](/problems/validateBST) | | | [Kth Smallest Element in a BST ](https://leetcode.com/problems/kth-smallest-element-in-a-bst/) | | | | | | [Lowest Common Ancestor of BST ](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) | Solved | 45min | [Recursion](/problems/lcaBinaryTree) | Mar27,May1 | | [Implement Trie (Prefix Tree) ](https://leetcode.com/problems/implement-trie-prefix-tree/) | | | | | | [Add and Search Word ](https://leetcode.com/problems/add-and-search-word-data-structure-design/) | | | | | | [Word Search II ](https://leetcode.com/problems/word-search-ii/) | | | | | [Symmetric Tree]() | Solved | n/a | [recursion](/problems/symmetricTree.html) | [Balanced Tree]() | Solved | n/a | [recursion](/problems/isTreeBalanced.html) | [Deepest Leaves Sum]() | Solved | n/a | [dfs](/problems/deepestLeavesSumDFS.html)
[bfs](/problems/deepestLeavesSumBFS.html) | may12 | [Print K distance from root]() | Solved | n/a | [dfs](/problems/printKdistanceFromRoot.html) | n/a | also could've used bfs approach --- Heap ------- | Problem | Solved | Time To Solve | Solutions | Last Attempted | Comments |-----------|:------------:|:-------:| | [Merge K Sorted Lists ](https://leetcode.com/problems/merge-k-sorted-lists/) | | | | | | [Top K Frequent Elements ](https://leetcode.com/problems/top-k-frequent-elements/) | | | | | | [Find Median from Data Stream ](https://leetcode.com/problems/find-median-from-data-stream/) | | | | | from https://www.teamblind.com/post/New-Year-Gift---Curated-List-of-Top-100-LeetCode-Questions-to-Save-Your-Time-OaM1orEU