/leetcode

Primary LanguageRuby

index title link
0001 two-sum link
0002 add-two-numbers link
0003 longest-substring-without-repeating-characters link
0004 median-of-two-sorted-arrays link
0005 longest-palindromic-substring link
0006 zigzag-conversion link
0007 reverse-integer link
0008 string-to-integer-atoi link
0009 palindrome-number link
0010 regular-expression-matching link
0011 container-with-most-water link
0012 integer-to-roman link
0013 roman-to-integer link
0014 longest-common-prefix link
0015 3sum link
0016 3sum-closest link
0017 letter-combinations-of-a-phone-number link
0018 4sum link
0019 remove-nth-node-from-end-of-list link
0020 valid-parentheses link
0021 merge-two-sorted-lists link
0022 generate-parentheses link
0023 merge-k-sorted-lists link
0024 swap-nodes-in-pairs link
0025 reverse-nodes-in-k-group link
0026 remove-duplicates-from-sorted-array link
0027 remove-element link
0028 implement-strstr link
0029 divide-two-integers link
0030 substring-with-concatenation-of-all-words link
0031 next-permutation link
0032 longest-valid-parentheses link
0033 search-in-rotated-sorted-array link
0034 find-first-and-last-position-of-element-in-sorted-array link
0035 search-insert-position link
0036 valid-sudoku link
0037 sudoku-solver link
0038 count-and-say link
0039 combination-sum link
0040 combination-sum-ii link
0041 first-missing-positive link
0042 trapping-rain-water link
0043 multiply-strings link
0044 wildcard-matching link
0045 jump-game-ii link
0046 permutations link
0047 permutations-ii link
0048 rotate-image link
0049 group-anagrams link
0050 powx-n link
0051 n-queens link
0052 n-queens-ii link
0053 maximum-subarray link
0054 spiral-matrix link
0055 jump-game link
0056 merge-intervals link
0057 insert-interval link
0058 length-of-last-word link
0059 spiral-matrix-ii link
0060 permutation-sequence link
0061 rotate-list link
0062 unique-paths link
0063 unique-paths-ii link
0064 minimum-path-sum link
0065 valid-number link
0066 plus-one link
0067 add-binary link
0068 text-justification link
0069 sqrtx link
0070 climbing-stairs link
0071 simplify-path link
0072 edit-distance link
0073 set-matrix-zeroes link
0074 search-a-2d-matrix link
0075 sort-colors link
0076 minimum-window-substring link
0077 combinations link
0078 subsets link
0079 word-search link
0080 remove-duplicates-from-sorted-array-ii link
0081 search-in-rotated-sorted-array-ii link
0082 remove-duplicates-from-sorted-list-ii link
0083 remove-duplicates-from-sorted-list link
0084 largest-rectangle-in-histogram link
0085 maximal-rectangle link
0086 partition-list link
0087 scramble-string link
0088 merge-sorted-array link
0089 gray-code link
0090 subsets-ii link
0091 decode-ways link
0092 reverse-linked-list-ii link
0093 restore-ip-addresses link
0094 binary-tree-inorder-traversal link
0095 unique-binary-search-trees-ii link
0096 unique-binary-search-trees link
0097 interleaving-string link
0098 validate-binary-search-tree link
0099 recover-binary-search-tree link
0100 same-tree link
0101 symmetric-tree link
0102 binary-tree-level-order-traversal link
0103 binary-tree-zigzag-level-order-traversal link
0104 maximum-depth-of-binary-tree link
0105 construct-binary-tree-from-preorder-and-inorder-traversal link
0106 construct-binary-tree-from-inorder-and-postorder-traversal link
0107 binary-tree-level-order-traversal-ii link
0108 convert-sorted-array-to-binary-search-tree link
0109 convert-sorted-list-to-binary-search-tree link
0110 balanced-binary-tree link
0111 minimum-depth-of-binary-tree link
0112 path-sum link
0113 path-sum-ii link
0114 flatten-binary-tree-to-linked-list link
0115 distinct-subsequences link
0116 populating-next-right-pointers-in-each-node link
0117 populating-next-right-pointers-in-each-node-ii link
0118 pascals-triangle link
0119 pascals-triangle-ii link
0120 triangle link
0121 best-time-to-buy-and-sell-stock link
0122 best-time-to-buy-and-sell-stock-ii link
0123 best-time-to-buy-and-sell-stock-iii link
0124 binary-tree-maximum-path-sum link
0125 valid-palindrome link
0126 word-ladder-ii link
0127 word-ladder link
0128 longest-consecutive-sequence link
0129 sum-root-to-leaf-numbers link
0130 surrounded-regions link
0131 palindrome-partitioning link
0132 palindrome-partitioning-ii link
0133 clone-graph link
0134 gas-station link
0135 candy link
0136 single-number link
0137 single-number-ii link
0138 copy-list-with-random-pointer link
0139 word-break link
0140 word-break-ii link
0141 linked-list-cycle link
0142 linked-list-cycle-ii link
0143 reorder-list link
0144 binary-tree-preorder-traversal link
0145 binary-tree-postorder-traversal link
0146 lru-cache link
0147 insertion-sort-list link
0148 sort-list link
0149 max-points-on-a-line link
0150 evaluate-reverse-polish-notation link
0151 reverse-words-in-a-string link
0152 maximum-product-subarray link
0153 find-minimum-in-rotated-sorted-array link
0154 find-minimum-in-rotated-sorted-array-ii link
0155 min-stack link
0160 intersection-of-two-linked-lists link
0162 find-peak-element link
0164 maximum-gap link
0165 compare-version-numbers link
0166 fraction-to-recurring-decimal link
0167 two-sum-ii-input-array-is-sorted link
0168 excel-sheet-column-title link
0169 majority-element link
0171 excel-sheet-column-number link
0172 factorial-trailing-zeroes link
0173 binary-search-tree-iterator link
0174 dungeon-game link
0179 largest-number link
0187 repeated-dna-sequences link
0188 best-time-to-buy-and-sell-stock-iv link
0189 rotate-array link
0190 reverse-bits link
0191 number-of-1-bits link
0198 house-robber link
0199 binary-tree-right-side-view link
0200 number-of-islands link
0201 bitwise-and-of-numbers-range link
0202 happy-number link
0203 remove-linked-list-elements link
0204 count-primes link
0205 isomorphic-strings link
0206 reverse-linked-list link
0207 course-schedule link
0208 implement-trie-prefix-tree link
0209 minimum-size-subarray-sum link
0210 course-schedule-ii link
0211 add-and-search-word-data-structure-design link
0212 word-search-ii link
0213 house-robber-ii link
0214 shortest-palindrome link
0215 kth-largest-element-in-an-array link
0216 combination-sum-iii link
0217 contains-duplicate link
0218 the-skyline-problem link
0219 contains-duplicate-ii link
0220 contains-duplicate-iii link
0221 maximal-square link
0222 count-complete-tree-nodes link
0223 rectangle-area link
0224 basic-calculator link
0225 implement-stack-using-queues link
0226 invert-binary-tree link
0227 basic-calculator-ii link
0228 summary-ranges link
0229 majority-element-ii link
0230 kth-smallest-element-in-a-bst link
0231 power-of-two link
0232 implement-queue-using-stacks link
0233 number-of-digit-one link
0234 palindrome-linked-list link
0235 lowest-common-ancestor-of-a-binary-search-tree link
0236 lowest-common-ancestor-of-a-binary-tree link
0237 delete-node-in-a-linked-list link
0238 product-of-array-except-self link
0239 sliding-window-maximum link
0240 search-a-2d-matrix-ii link
0241 different-ways-to-add-parentheses link
0242 valid-anagram link
0257 binary-tree-paths link
0258 add-digits link
0260 single-number-iii link
0263 ugly-number link
0264 ugly-number-ii link
0268 missing-number link
0273 integer-to-english-words link
0274 h-index link
0275 h-index-ii link
0278 first-bad-version link
0279 perfect-squares link
0282 expression-add-operators link
0295 find-median-from-data-stream link
0304 range-sum-query-2d-immutable link
0307 range-sum-query-mutable link
0321 create-maximum-number link
0324 wiggle-sort-ii link
0551 student-attendance-record-i link
0552 student-attendance-record-ii link
0554 brick-wall link
0556 next-greater-element-iii link
0557 reverse-words-in-a-string-iii link