problems.sh — zsh
126 of 126 problems
[easy]Two Sumarrays, hashmap[medi]Merge Intervalsarrays, sorting, intervals[easy]Reverse a Stringstrings[easy]Longest Common Prefixstrings[easy]Palindrome Stringstrings, two-pointers[medi]Palindromic Substringsstrings, dynamic-programming[medi]Longest Palindromic Substringstrings, dynamic-programming[easy]Palindrome Linked Listlinked-list, two-pointers[easy]Roman to Integerstrings, math, hashmap[medi]Letter Combinations of a Phone Numberstrings, backtracking[easy]Valid Parenthesesstrings, stack[easy]Find the Index of the First Occurrence in a Stringstrings, two-pointers[easy]Length of Last Wordstrings[medi]Spiral Matrixarrays, matrix[easy]FizzBuzzstrings, math[easy]Contains Duplicatearrays, hashmap[medi]Maximum Subarrayarrays, dynamic-programming[easy]Fibonacci Numbermath, dynamic-programming[easy]Factorialmath, recursion[easy]Move Zeroesarrays, two-pointers[easy]Single Numberarrays, bit-manipulation[easy]Best Time to Buy and Sell Stockarrays, dynamic-programming[easy]Valid Anagramstrings, hashmap[easy]Binary Searcharrays, binary-search[easy]Count Vowelsstrings[easy]Climbing Stairsmath, dynamic-programming[medi]Product of Array Except Selfarrays, prefix-sum[hard]Trapping Rain Waterarrays, two-pointers, stack[hard]Edit Distancestrings, dynamic-programming[hard]Median of Two Sorted Arraysarrays, binary-search, divide-and-conquer[hard]Longest Valid Parenthesesstrings, stack, dynamic-programming[easy]Palindrome Numbermath[easy]Plus Onearrays, math[easy]Majority Elementarrays, hashmap[easy]Is Subsequencestrings, two-pointers[easy]First Unique Character in a Stringstrings, hashmap[easy]Search Insert Positionarrays, binary-search[medi]House Robberarrays, dynamic-programming[medi]Jump Gamearrays, greedy, dynamic-programming[medi]Coin Changearrays, dynamic-programming[medi]Longest Substring Without Repeating Charactersstrings, sliding-window, hashmap[medi]Container With Most Waterarrays, two-pointers, greedy[medi]Number of Islandsmatrix, graph, dfs[hard]Word Breakstrings, dynamic-programming, hashmap[hard]Longest Increasing Subsequencearrays, dynamic-programming, binary-search[hard]Largest Rectangle in Histogramarrays, stack[hard]Sliding Window Maximumarrays, sliding-window, queue[hard]Jump Game IIarrays, greedy, dynamic-programming[easy]Reverse Linked Listlinked-list, pointers, recursion[easy]Maximum Depth of Binary Treebinary-tree, recursion, depth-first-search[medi]Course Schedulegraph, topological-sort, dfs[medi]Rotting Orangesmatrix, graph, bfs[medi]Redundant Connectiongraph, union-find[medi]Kth Largest Element in an Arrayarrays, heap, priority-queue[medi]Top K Frequent Elementsarrays, hashmap, heap[medi]Subsetsarrays, backtracking, recursion[easy]Invert Binary Treebinary-tree, depth-first-search, recursion[easy]Same Treebinary-tree, depth-first-search, recursion[medi]Validate Binary Search Treebinary-tree, binary-search-tree, depth-first-search[medi]Binary Tree Level Order Traversalbinary-tree, breadth-first-search, queue[medi]Lowest Common Ancestor of a BSTbinary-tree, binary-search-tree, depth-first-search[easy]Merge Two Sorted Listslinked-list, two-pointers, recursion[easy]Linked List Cyclelinked-list, two-pointers, cycle-detection[medi]Reorder Listlinked-list, two-pointers, stack[medi]Clone Graphgraph, depth-first-search, breadth-first-search[medi]Pacific Atlantic Water Flowgraph, matrix, depth-first-search[medi]Network Delay Timegraph, shortest-path, heap[hard]Merge K Sorted Listslinked-list, heap, priority-queue[hard]Find Median from Data Streamheap, priority-queue, data-stream[medi]Permutationsarrays, backtracking, recursion[medi]Combination Sumarrays, backtracking, recursion[medi]Word Searchmatrix, backtracking, depth-first-search[medi]Implement Trietrie, string, design[medi]Design Add and Search Wordstrie, backtracking, string[medi]LRU Cachehashmap, linked-list, design[medi]Unique Pathsmath, dynamic-programming, combinatorics[easy]Pascal's Trianglemath, combinatorics, arrays[medi]Count Primesmath[easy]Sqrt(x)math, binary-search[easy]Happy Numbermath, hashmap[easy]Excel Sheet Column Numbermath, strings[medi]Insert Intervalarrays, intervals[medi]Non-overlapping Intervalsarrays, intervals, greedy[medi]Sort Colorsarrays, sorting, two-pointers[medi]Number of Provincesgraph, union-find[medi]Minimum Size Subarray Sumarrays, sliding-window, two-pointers[medi]3Sumarrays, two-pointers, hashmap[medi]Rotate Imagematrix, arrays[medi]Search in Rotated Sorted Arrayarrays, binary-search[medi]Longest Consecutive Sequencearrays, hashmap[easy]Sum of Two Integersbit-manipulation, math[easy]Symmetric Treebinary-tree, depth-first-search, recursion[easy]Diameter of Binary Treebinary-tree, depth-first-search, recursion[medi]Kth Smallest Element in a BSTbinary-tree, binary-search-tree, depth-first-search[medi]Add Two Numberslinked-list, math, simulation[medi]Remove Nth Node From End of Listlinked-list, two-pointers[medi]Path Sumbinary-tree, depth-first-search, recursion[easy]Convert Sorted Array to Binary Search Treebinary-tree, binary-search-tree, divide-and-conquer[medi]Reverse Linked List IIlinked-list, pointers[medi]Swap Nodes in Pairslinked-list, pointers, recursion[medi]Binary Tree Right Side Viewbinary-tree, breadth-first-search[easy]Merge Two Binary Treesbinary-tree, depth-first-search, recursion[medi]Path Sum IIbinary-tree, depth-first-search, backtracking[medi]Construct Binary Tree from Preorder & Inorderbinary-tree, divide-and-conquer, recursion[medi]Linked List Cycle IIlinked-list, two-pointers, cycle-detection[medi]Odd Even Linked Listlinked-list, two-pointers, in-place[medi]Task Schedulerheap, priority-queue, greedy[medi]Connected Components in an Undirected Graphgraph, union-find[medi]Palindrome Partitioningstrings, backtracking, dynamic-programming[hard]Word Search IItrie, backtracking, matrix[hard]Word Laddergraph, breadth-first-search, shortest-path[medi]Daily Temperaturesarrays, stack, monotonic-stack[medi]Decode Waysstrings, dynamic-programming[medi]Gas Stationarrays, greedy[hard]Alien Dictionarygraph, topological-sort, strings[hard]Binary Tree Maximum Path Sumbinary-tree, depth-first-search, dynamic-programming[medi]Meeting Rooms IIintervals, sorting, heap[hard]Minimum Window Substringstrings, sliding-window, hashmap[hard]Longest Increasing Path in a Matrixmatrix, graph, dynamic-programming[medi]Range Sum Query - Mutabledesign, prefix-sum, fenwick-tree[medi]Cheapest Flights Within K Stopsgraph, shortest-path, dynamic-programming[medi]Group Anagramsarrays, hashmap, strings[medi]Min Stackstack, design[medi]Accounts Mergegraph, union-find, hashmap[medi]K Closest Points to Originarrays, heap, priority-queue[easy]Counting Bitsbit-manipulation, dynamic-programming