├── 1.two-sum.rb ├── 10.regular-expression-matching.rb ├── 1005.maximize-sum-of-array-after-k-negations.rb ├── 101.symmetric-tree.rb ├── 1012.complement-of-base-10-integer.rb ├── 1013.pairs-of-songs-with-total-durations-divisible-by-60.rb ├── 1014.capacity-to-ship-packages-within-d-days.rb ├── 102.binary-tree-level-order-traversal.rb ├── 1021.remove-outermost-parentheses.rb ├── 1022.sum-of-root-to-leaf-binary-numbers.rb ├── 1023.camelcase-matching.rb ├── 1024.video-stitching.rb ├── 1025.divisor-game.rb ├── 1026.maximum-difference-between-node-and-ancestor.rb ├── 1027.longest-arithmetic-sequence.rb ├── 1028.recover-a-tree-from-preorder-traversal.rb ├── 1029.two-city-scheduling.rb ├── 103.binary-tree-zigzag-level-order-traversal.rb ├── 1030.matrix-cells-in-distance-order.rb ├── 1031.maximum-sum-of-two-non-overlapping-subarrays.rb ├── 1032.stream-of-characters.rb ├── 1033.moving-stones-until-consecutive.rb ├── 1034.coloring-a-border.rb ├── 1035.uncrossed-lines.rb ├── 1037.valid-boomerang.rb ├── 1038.binary-search-tree-to-greater-sum-tree.rb ├── 1039.minimum-score-triangulation-of-polygon.rb ├── 104.maximum-depth-of-binary-tree.rb ├── 1041.robot-bounded-in-circle.rb ├── 1042.flower-planting-with-no-adjacent.rb ├── 1043.partition-array-for-maximum-sum.rb ├── 105.construct-binary-tree-from-preorder-and-inorder-traversal.rb ├── 106.construct-binary-tree-from-inorder-and-postorder-traversal.rb ├── 108.convert-sorted-array-to-binary-search-tree.rb ├── 11.container-with-most-water.rb ├── 110.balanced-binary-tree.rb ├── 111.minimum-depth-of-binary-tree.rb ├── 112.path-sum.rb ├── 113.path-sum-ii.rb ├── 116.populating-next-right-pointers-in-each-node.rb ├── 118.pascals-triangle.rb ├── 119.pascals-triangle-ii.rb ├── 121.best-time-to-buy-and-sell-stock.rb ├── 122.best-time-to-buy-and-sell-stock-ii.rb ├── 123.best-time-to-buy-and-sell-stock-iii.rb ├── 124.binary-tree-maximum-path-sum.rb ├── 125.valid-palindrome.rb ├── 126.word-ladder-ii.rb ├── 127.word-ladder.rb ├── 128.longest-consecutive-sequence.rb ├── 13.roman-to-integer.rb ├── 130.surrounded-regions.rb ├── 131.palindrome-partitioning.rb ├── 134.gas-station.rb ├── 136.single-number.rb ├── 138.copy-list-with-random-pointer.rb ├── 139.word-break.rb ├── 14.longest-common-prefix.rb ├── 140.word-break-ii.rb ├── 141.linked-list-cycle.rb ├── 144.binary-tree-preorder-traversal.rb ├── 146.lru-cache.rb ├── 148.sort-list.rb ├── 149.max-points-on-a-line.rb ├── 15.3sum.rb ├── 150.evaluate-reverse-polish-notation.rb ├── 151.reverse-words-in-a-string.rb ├── 152.maximum-product-subarray.rb ├── 155.min-stack.rb ├── 157.read-n-characters-given-read4.rb ├── 16.3sum-closest.rb ├── 160.intersection-of-two-linked-lists.rb ├── 162.find-peak-element.rb ├── 163.missing-ranges.rb ├── 166.fraction-to-recurring-decimal.rb ├── 167.two-sum-ii-input-array-is-sorted.rb ├── 169.majority-element.rb ├── 17.letter-combinations-of-a-phone-number.rb ├── 171.excel-sheet-column-number.rb ├── 172.factorial-trailing-zeroes.rb ├── 186.reverse-words-in-a-string-ii.rb ├── 189.rotate-array.rb ├── 19.remove-nth-node-from-end-of-list.rb ├── 191.number-of-1-bits.rb ├── 198.house-robber.rb ├── 199.binary-tree-right-side-view.rb ├── 2.add-two-numbers.rb ├── 20.valid-parentheses.rb ├── 200.number-of-islands.rb ├── 202.happy-number.rb ├── 203.remove-linked-list-elements.rb ├── 204.count-primes.rb ├── 206.reverse-linked-list.rb ├── 207.course-schedule.rb ├── 208.implement-trie-prefix-tree.rb ├── 209.minimum-size-subarray-sum.rb ├── 21.merge-two-sorted-lists.rb ├── 210.course-schedule-ii.rb ├── 212.word-search-ii.rb ├── 213.house-robber-ii.rb ├── 215.kth-largest-element-in-an-array.rb ├── 216.combination-sum-iii.rb ├── 218.the-skyline-problem.rb ├── 22.generate-parentheses.rb ├── 226.invert-binary-tree.rb ├── 228.summary-ranges.rb ├── 23.merge-k-sorted-lists.rb ├── 230.kth-smallest-element-in-a-bst.rb ├── 234.palindrome-linked-list.rb ├── 235.lowest-common-ancestor-of-a-binary-search-tree.rb ├── 236.lowest-common-ancestor-of-a-binary-tree.rb ├── 237.delete-node-in-a-linked-list.rb ├── 238.product-of-array-except-self.rb ├── 239.sliding-window-maximum.rb ├── 240.search-a-2d-matrix-ii.rb ├── 242.valid-anagram.rb ├── 243.shortest-word-distance.rb ├── 25.reverse-nodes-in-k-group.rb ├── 252.meeting-rooms.rb ├── 253.meeting-rooms-ii.rb ├── 256.paint-house.rb ├── 26.remove-duplicates-from-sorted-array.rb ├── 266.palindrome-permutation.rb ├── 269.alien-dictionary.rb ├── 276.paint-fence.rb ├── 28.implement-strstr.rb ├── 280.wiggle-sort.rb ├── 285.inorder-successor-in-bst.rb ├── 29.divide-two-integers.rb ├── 292.nim-game.rb ├── 295.find-median-from-data-stream.rb ├── 297.serialize-and-deserialize-binary-tree.rb ├── 3.longest-substring-without-repeating-characters.rb ├── 300.longest-increasing-subsequence.rb ├── 303.range-sum-query-immutable.rb ├── 307.range-sum-query-mutable.rb ├── 31.next-permutation.rb ├── 315.count-of-smaller-numbers-after-self.rb ├── 32.longest-valid-parentheses.rb ├── 322.coin-change.rb ├── 327.count-of-range-sum.rb ├── 33.search-in-rotated-sorted-array.rb ├── 336.palindrome-pairs.rb ├── 337.house-robber-iii.rb ├── 339.nested-list-weight-sum.rb ├── 34.find-first-and-last-position-of-element-in-sorted-array.rb ├── 344.reverse-string.rb ├── 346.moving-average-from-data-stream.rb ├── 347.top-k-frequent-elements.rb ├── 35.search-insert-position.rb ├── 36.valid-sudoku.rb ├── 371.sum-of-two-integers.rb ├── 378.kth-smallest-element-in-a-sorted-matrix.rb ├── 380.insert-delete-getrandom-o1.rb ├── 381.insert-delete-getrandom-o1-duplicates-allowed.rb ├── 384.shuffle-an-array.rb ├── 387.first-unique-character-in-a-string.rb ├── 388.longest-absolute-file-path.rb ├── 39.combination-sum.rb ├── 4.median-of-two-sorted-arrays.rb ├── 40.combination-sum-ii.rb ├── 409.longest-palindrome.rb ├── 41.first-missing-positive.rb ├── 416.partition-equal-subset-sum.rb ├── 42.trapping-rain-water.rb ├── 437.path-sum-iii.rb ├── 44.wildcard-matching.rb ├── 442.find-all-duplicates-in-an-array.rb ├── 445.add-two-numbers-ii.rb ├── 449.serialize-and-deserialize-bst.rb ├── 45.jump-game-ii.rb ├── 450.delete-node-in-a-bst.rb ├── 451.sort-characters-by-frequency.rb ├── 46.permutations.rb ├── 460.lfu-cache.rb ├── 461.hamming-distance.rb ├── 47.permutations-ii.rb ├── 48.rotate-image.rb ├── 49.group-anagrams.rb ├── 493.reverse-pairs.rb ├── 5.longest-palindromic-substring.rb ├── 50.powx-n.rb ├── 509.fibonacci-number.rb ├── 51.n-queens.rb ├── 515.find-largest-value-in-each-tree-row.rb ├── 516.longest-palindromic-subsequence.rb ├── 518.coin-change-2.rb ├── 52.n-queens-ii.rb ├── 523.continuous-subarray-sum.rb ├── 53.maximum-subarray.rb ├── 535.encode-and-decode-tinyurl.rb ├── 54.spiral-matrix.rb ├── 548.split-array-with-equal-sum.rb ├── 55.jump-game.rb ├── 56.merge-intervals.rb ├── 560.subarray-sum-equals-k.rb ├── 57.insert-interval.rb ├── 572.subtree-of-another-tree.rb ├── 587.erect-the-fence.rb ├── 59.spiral-matrix-ii.rb ├── 6.zigzag-conversion.rb ├── 61.rotate-list.rb ├── 617.merge-two-binary-trees.rb ├── 62.unique-paths.rb ├── 63.unique-paths-ii.rb ├── 66.plus-one.rb ├── 661.image-smoother.rb ├── 666.path-sum-iv.rb ├── 673.number-of-longest-increasing-subsequence.rb ├── 674.longest-continuous-increasing-subsequence.rb ├── 678.valid-parenthesis-string.rb ├── 69.sqrtx.rb ├── 694.number-of-distinct-islands.rb ├── 695.max-area-of-island.rb ├── 7.reverse-integer.rb ├── 70.climbing-stairs.rb ├── 701.insert-into-a-binary-search-tree.rb ├── 704.binary-search.rb ├── 706.design-hashmap.rb ├── 718.maximum-length-of-repeated-subarray.rb ├── 719.find-k-th-smallest-pair-distance.rb ├── 72.edit-distance.rb ├── 73.set-matrix-zeroes.rb ├── 733.flood-fill.rb ├── 74.search-a-2d-matrix.rb ├── 743.network-delay-time.rb ├── 75.sort-colors.rb ├── 76.minimum-window-substring.rb ├── 765.couples-holding-hands.rb ├── 78.subsets.rb ├── 783.minimum-distance-between-bst-nodes.rb ├── 787.cheapest-flights-within-k-stops.rb ├── 79.word-search.rb ├── 790.domino-and-tromino-tiling.rb ├── 8.string-to-integer-atoi.rb ├── 80.remove-duplicates-from-sorted-array-ii.rb ├── 81.search-in-rotated-sorted-array-ii.rb ├── 812.largest-triangle-area.rb ├── 836.rectangle-overlap.rb ├── 84.largest-rectangle-in-histogram.rb ├── 862.shortest-subarray-with-sum-at-least-k.rb ├── 863.all-nodes-distance-k-in-binary-tree.rb ├── 876.middle-of-the-linked-list.rb ├── 88.merge-sorted-array.rb ├── 89.gray-code.rb ├── 9.palindrome-number.rb ├── 91.decode-ways.rb ├── 938.range-sum-of-bst.rb ├── 94.binary-tree-inorder-traversal.rb ├── 947.most-stones-removed-with-same-row-or-column.rb ├── 958.check-completeness-of-a-binary-tree.rb ├── 973.k-closest-points-to-origin.rb ├── 98.validate-binary-search-tree.rb ├── 980.unique-paths-iii.rb ├── 99.recover-binary-search-tree.rb ├── README.org ├── data-structures ├── fenwick-tree.rb ├── heap.rb ├── segment-tree.rb ├── sparse-table.rb ├── treap.rb └── union-find.rb ├── imgs ├── meme0.jpg ├── meme1.jpg └── meme2.jpg └── other ├── build-array-from-count-of-bigger-numbers-before-self.rb ├── distance-between-2-nodes-in-BST.rb ├── fair-work-load.rb ├── generic-cow-protests.rb ├── longest-subarray-sum-equals-s.rb ├── longest-subsequence-of-balanced-parentheses.rb ├── lowest-common-territory-of-places.rb ├── merge-two-intervals.rb ├── minimum-flip-to-sorted-string.rb ├── swap-lex-order.rb └── villagers-and-defenders.rb /1.two-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1.two-sum.rb -------------------------------------------------------------------------------- /10.regular-expression-matching.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/10.regular-expression-matching.rb -------------------------------------------------------------------------------- /1005.maximize-sum-of-array-after-k-negations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1005.maximize-sum-of-array-after-k-negations.rb -------------------------------------------------------------------------------- /101.symmetric-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/101.symmetric-tree.rb -------------------------------------------------------------------------------- /1012.complement-of-base-10-integer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1012.complement-of-base-10-integer.rb -------------------------------------------------------------------------------- /1013.pairs-of-songs-with-total-durations-divisible-by-60.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1013.pairs-of-songs-with-total-durations-divisible-by-60.rb -------------------------------------------------------------------------------- /1014.capacity-to-ship-packages-within-d-days.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1014.capacity-to-ship-packages-within-d-days.rb -------------------------------------------------------------------------------- /102.binary-tree-level-order-traversal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/102.binary-tree-level-order-traversal.rb -------------------------------------------------------------------------------- /1021.remove-outermost-parentheses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1021.remove-outermost-parentheses.rb -------------------------------------------------------------------------------- /1022.sum-of-root-to-leaf-binary-numbers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1022.sum-of-root-to-leaf-binary-numbers.rb -------------------------------------------------------------------------------- /1023.camelcase-matching.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1023.camelcase-matching.rb -------------------------------------------------------------------------------- /1024.video-stitching.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1024.video-stitching.rb -------------------------------------------------------------------------------- /1025.divisor-game.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1025.divisor-game.rb -------------------------------------------------------------------------------- /1026.maximum-difference-between-node-and-ancestor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1026.maximum-difference-between-node-and-ancestor.rb -------------------------------------------------------------------------------- /1027.longest-arithmetic-sequence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1027.longest-arithmetic-sequence.rb -------------------------------------------------------------------------------- /1028.recover-a-tree-from-preorder-traversal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1028.recover-a-tree-from-preorder-traversal.rb -------------------------------------------------------------------------------- /1029.two-city-scheduling.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1029.two-city-scheduling.rb -------------------------------------------------------------------------------- /103.binary-tree-zigzag-level-order-traversal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/103.binary-tree-zigzag-level-order-traversal.rb -------------------------------------------------------------------------------- /1030.matrix-cells-in-distance-order.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1030.matrix-cells-in-distance-order.rb -------------------------------------------------------------------------------- /1031.maximum-sum-of-two-non-overlapping-subarrays.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1031.maximum-sum-of-two-non-overlapping-subarrays.rb -------------------------------------------------------------------------------- /1032.stream-of-characters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1032.stream-of-characters.rb -------------------------------------------------------------------------------- /1033.moving-stones-until-consecutive.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1033.moving-stones-until-consecutive.rb -------------------------------------------------------------------------------- /1034.coloring-a-border.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1034.coloring-a-border.rb -------------------------------------------------------------------------------- /1035.uncrossed-lines.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1035.uncrossed-lines.rb -------------------------------------------------------------------------------- /1037.valid-boomerang.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1037.valid-boomerang.rb -------------------------------------------------------------------------------- /1038.binary-search-tree-to-greater-sum-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1038.binary-search-tree-to-greater-sum-tree.rb -------------------------------------------------------------------------------- /1039.minimum-score-triangulation-of-polygon.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1039.minimum-score-triangulation-of-polygon.rb -------------------------------------------------------------------------------- /104.maximum-depth-of-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/104.maximum-depth-of-binary-tree.rb -------------------------------------------------------------------------------- /1041.robot-bounded-in-circle.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1041.robot-bounded-in-circle.rb -------------------------------------------------------------------------------- /1042.flower-planting-with-no-adjacent.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1042.flower-planting-with-no-adjacent.rb -------------------------------------------------------------------------------- /1043.partition-array-for-maximum-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/1043.partition-array-for-maximum-sum.rb -------------------------------------------------------------------------------- /105.construct-binary-tree-from-preorder-and-inorder-traversal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/105.construct-binary-tree-from-preorder-and-inorder-traversal.rb -------------------------------------------------------------------------------- /106.construct-binary-tree-from-inorder-and-postorder-traversal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/106.construct-binary-tree-from-inorder-and-postorder-traversal.rb -------------------------------------------------------------------------------- /108.convert-sorted-array-to-binary-search-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/108.convert-sorted-array-to-binary-search-tree.rb -------------------------------------------------------------------------------- /11.container-with-most-water.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/11.container-with-most-water.rb -------------------------------------------------------------------------------- /110.balanced-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/110.balanced-binary-tree.rb -------------------------------------------------------------------------------- /111.minimum-depth-of-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/111.minimum-depth-of-binary-tree.rb -------------------------------------------------------------------------------- /112.path-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/112.path-sum.rb -------------------------------------------------------------------------------- /113.path-sum-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/113.path-sum-ii.rb -------------------------------------------------------------------------------- /116.populating-next-right-pointers-in-each-node.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/116.populating-next-right-pointers-in-each-node.rb -------------------------------------------------------------------------------- /118.pascals-triangle.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/118.pascals-triangle.rb -------------------------------------------------------------------------------- /119.pascals-triangle-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/119.pascals-triangle-ii.rb -------------------------------------------------------------------------------- /121.best-time-to-buy-and-sell-stock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/121.best-time-to-buy-and-sell-stock.rb -------------------------------------------------------------------------------- /122.best-time-to-buy-and-sell-stock-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/122.best-time-to-buy-and-sell-stock-ii.rb -------------------------------------------------------------------------------- /123.best-time-to-buy-and-sell-stock-iii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/123.best-time-to-buy-and-sell-stock-iii.rb -------------------------------------------------------------------------------- /124.binary-tree-maximum-path-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/124.binary-tree-maximum-path-sum.rb -------------------------------------------------------------------------------- /125.valid-palindrome.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/125.valid-palindrome.rb -------------------------------------------------------------------------------- /126.word-ladder-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/126.word-ladder-ii.rb -------------------------------------------------------------------------------- /127.word-ladder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/127.word-ladder.rb -------------------------------------------------------------------------------- /128.longest-consecutive-sequence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/128.longest-consecutive-sequence.rb -------------------------------------------------------------------------------- /13.roman-to-integer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/13.roman-to-integer.rb -------------------------------------------------------------------------------- /130.surrounded-regions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/130.surrounded-regions.rb -------------------------------------------------------------------------------- /131.palindrome-partitioning.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/131.palindrome-partitioning.rb -------------------------------------------------------------------------------- /134.gas-station.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/134.gas-station.rb -------------------------------------------------------------------------------- /136.single-number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/136.single-number.rb -------------------------------------------------------------------------------- /138.copy-list-with-random-pointer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/138.copy-list-with-random-pointer.rb -------------------------------------------------------------------------------- /139.word-break.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/139.word-break.rb -------------------------------------------------------------------------------- /14.longest-common-prefix.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/14.longest-common-prefix.rb -------------------------------------------------------------------------------- /140.word-break-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/140.word-break-ii.rb -------------------------------------------------------------------------------- /141.linked-list-cycle.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/141.linked-list-cycle.rb -------------------------------------------------------------------------------- /144.binary-tree-preorder-traversal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/144.binary-tree-preorder-traversal.rb -------------------------------------------------------------------------------- /146.lru-cache.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/146.lru-cache.rb -------------------------------------------------------------------------------- /148.sort-list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/148.sort-list.rb -------------------------------------------------------------------------------- /149.max-points-on-a-line.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/149.max-points-on-a-line.rb -------------------------------------------------------------------------------- /15.3sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/15.3sum.rb -------------------------------------------------------------------------------- /150.evaluate-reverse-polish-notation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/150.evaluate-reverse-polish-notation.rb -------------------------------------------------------------------------------- /151.reverse-words-in-a-string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/151.reverse-words-in-a-string.rb -------------------------------------------------------------------------------- /152.maximum-product-subarray.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/152.maximum-product-subarray.rb -------------------------------------------------------------------------------- /155.min-stack.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/155.min-stack.rb -------------------------------------------------------------------------------- /157.read-n-characters-given-read4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/157.read-n-characters-given-read4.rb -------------------------------------------------------------------------------- /16.3sum-closest.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/16.3sum-closest.rb -------------------------------------------------------------------------------- /160.intersection-of-two-linked-lists.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/160.intersection-of-two-linked-lists.rb -------------------------------------------------------------------------------- /162.find-peak-element.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/162.find-peak-element.rb -------------------------------------------------------------------------------- /163.missing-ranges.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/163.missing-ranges.rb -------------------------------------------------------------------------------- /166.fraction-to-recurring-decimal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/166.fraction-to-recurring-decimal.rb -------------------------------------------------------------------------------- /167.two-sum-ii-input-array-is-sorted.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/167.two-sum-ii-input-array-is-sorted.rb -------------------------------------------------------------------------------- /169.majority-element.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/169.majority-element.rb -------------------------------------------------------------------------------- /17.letter-combinations-of-a-phone-number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/17.letter-combinations-of-a-phone-number.rb -------------------------------------------------------------------------------- /171.excel-sheet-column-number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/171.excel-sheet-column-number.rb -------------------------------------------------------------------------------- /172.factorial-trailing-zeroes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/172.factorial-trailing-zeroes.rb -------------------------------------------------------------------------------- /186.reverse-words-in-a-string-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/186.reverse-words-in-a-string-ii.rb -------------------------------------------------------------------------------- /189.rotate-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/189.rotate-array.rb -------------------------------------------------------------------------------- /19.remove-nth-node-from-end-of-list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/19.remove-nth-node-from-end-of-list.rb -------------------------------------------------------------------------------- /191.number-of-1-bits.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/191.number-of-1-bits.rb -------------------------------------------------------------------------------- /198.house-robber.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/198.house-robber.rb -------------------------------------------------------------------------------- /199.binary-tree-right-side-view.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/199.binary-tree-right-side-view.rb -------------------------------------------------------------------------------- /2.add-two-numbers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/2.add-two-numbers.rb -------------------------------------------------------------------------------- /20.valid-parentheses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/20.valid-parentheses.rb -------------------------------------------------------------------------------- /200.number-of-islands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/200.number-of-islands.rb -------------------------------------------------------------------------------- /202.happy-number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/202.happy-number.rb -------------------------------------------------------------------------------- /203.remove-linked-list-elements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/203.remove-linked-list-elements.rb -------------------------------------------------------------------------------- /204.count-primes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/204.count-primes.rb -------------------------------------------------------------------------------- /206.reverse-linked-list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/206.reverse-linked-list.rb -------------------------------------------------------------------------------- /207.course-schedule.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/207.course-schedule.rb -------------------------------------------------------------------------------- /208.implement-trie-prefix-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/208.implement-trie-prefix-tree.rb -------------------------------------------------------------------------------- /209.minimum-size-subarray-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/209.minimum-size-subarray-sum.rb -------------------------------------------------------------------------------- /21.merge-two-sorted-lists.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/21.merge-two-sorted-lists.rb -------------------------------------------------------------------------------- /210.course-schedule-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/210.course-schedule-ii.rb -------------------------------------------------------------------------------- /212.word-search-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/212.word-search-ii.rb -------------------------------------------------------------------------------- /213.house-robber-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/213.house-robber-ii.rb -------------------------------------------------------------------------------- /215.kth-largest-element-in-an-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/215.kth-largest-element-in-an-array.rb -------------------------------------------------------------------------------- /216.combination-sum-iii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/216.combination-sum-iii.rb -------------------------------------------------------------------------------- /218.the-skyline-problem.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/218.the-skyline-problem.rb -------------------------------------------------------------------------------- /22.generate-parentheses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/22.generate-parentheses.rb -------------------------------------------------------------------------------- /226.invert-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/226.invert-binary-tree.rb -------------------------------------------------------------------------------- /228.summary-ranges.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/228.summary-ranges.rb -------------------------------------------------------------------------------- /23.merge-k-sorted-lists.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/23.merge-k-sorted-lists.rb -------------------------------------------------------------------------------- /230.kth-smallest-element-in-a-bst.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/230.kth-smallest-element-in-a-bst.rb -------------------------------------------------------------------------------- /234.palindrome-linked-list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/234.palindrome-linked-list.rb -------------------------------------------------------------------------------- /235.lowest-common-ancestor-of-a-binary-search-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/235.lowest-common-ancestor-of-a-binary-search-tree.rb -------------------------------------------------------------------------------- /236.lowest-common-ancestor-of-a-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/236.lowest-common-ancestor-of-a-binary-tree.rb -------------------------------------------------------------------------------- /237.delete-node-in-a-linked-list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/237.delete-node-in-a-linked-list.rb -------------------------------------------------------------------------------- /238.product-of-array-except-self.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/238.product-of-array-except-self.rb -------------------------------------------------------------------------------- /239.sliding-window-maximum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/239.sliding-window-maximum.rb -------------------------------------------------------------------------------- /240.search-a-2d-matrix-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/240.search-a-2d-matrix-ii.rb -------------------------------------------------------------------------------- /242.valid-anagram.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/242.valid-anagram.rb -------------------------------------------------------------------------------- /243.shortest-word-distance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/243.shortest-word-distance.rb -------------------------------------------------------------------------------- /25.reverse-nodes-in-k-group.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/25.reverse-nodes-in-k-group.rb -------------------------------------------------------------------------------- /252.meeting-rooms.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/252.meeting-rooms.rb -------------------------------------------------------------------------------- /253.meeting-rooms-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/253.meeting-rooms-ii.rb -------------------------------------------------------------------------------- /256.paint-house.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/256.paint-house.rb -------------------------------------------------------------------------------- /26.remove-duplicates-from-sorted-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/26.remove-duplicates-from-sorted-array.rb -------------------------------------------------------------------------------- /266.palindrome-permutation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/266.palindrome-permutation.rb -------------------------------------------------------------------------------- /269.alien-dictionary.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/269.alien-dictionary.rb -------------------------------------------------------------------------------- /276.paint-fence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/276.paint-fence.rb -------------------------------------------------------------------------------- /28.implement-strstr.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/28.implement-strstr.rb -------------------------------------------------------------------------------- /280.wiggle-sort.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/280.wiggle-sort.rb -------------------------------------------------------------------------------- /285.inorder-successor-in-bst.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/285.inorder-successor-in-bst.rb -------------------------------------------------------------------------------- /29.divide-two-integers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/29.divide-two-integers.rb -------------------------------------------------------------------------------- /292.nim-game.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/292.nim-game.rb -------------------------------------------------------------------------------- /295.find-median-from-data-stream.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/295.find-median-from-data-stream.rb -------------------------------------------------------------------------------- /297.serialize-and-deserialize-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/297.serialize-and-deserialize-binary-tree.rb -------------------------------------------------------------------------------- /3.longest-substring-without-repeating-characters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/3.longest-substring-without-repeating-characters.rb -------------------------------------------------------------------------------- /300.longest-increasing-subsequence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/300.longest-increasing-subsequence.rb -------------------------------------------------------------------------------- /303.range-sum-query-immutable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/303.range-sum-query-immutable.rb -------------------------------------------------------------------------------- /307.range-sum-query-mutable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/307.range-sum-query-mutable.rb -------------------------------------------------------------------------------- /31.next-permutation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/31.next-permutation.rb -------------------------------------------------------------------------------- /315.count-of-smaller-numbers-after-self.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/315.count-of-smaller-numbers-after-self.rb -------------------------------------------------------------------------------- /32.longest-valid-parentheses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/32.longest-valid-parentheses.rb -------------------------------------------------------------------------------- /322.coin-change.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/322.coin-change.rb -------------------------------------------------------------------------------- /327.count-of-range-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/327.count-of-range-sum.rb -------------------------------------------------------------------------------- /33.search-in-rotated-sorted-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/33.search-in-rotated-sorted-array.rb -------------------------------------------------------------------------------- /336.palindrome-pairs.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/336.palindrome-pairs.rb -------------------------------------------------------------------------------- /337.house-robber-iii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/337.house-robber-iii.rb -------------------------------------------------------------------------------- /339.nested-list-weight-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/339.nested-list-weight-sum.rb -------------------------------------------------------------------------------- /34.find-first-and-last-position-of-element-in-sorted-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/34.find-first-and-last-position-of-element-in-sorted-array.rb -------------------------------------------------------------------------------- /344.reverse-string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/344.reverse-string.rb -------------------------------------------------------------------------------- /346.moving-average-from-data-stream.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/346.moving-average-from-data-stream.rb -------------------------------------------------------------------------------- /347.top-k-frequent-elements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/347.top-k-frequent-elements.rb -------------------------------------------------------------------------------- /35.search-insert-position.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/35.search-insert-position.rb -------------------------------------------------------------------------------- /36.valid-sudoku.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/36.valid-sudoku.rb -------------------------------------------------------------------------------- /371.sum-of-two-integers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/371.sum-of-two-integers.rb -------------------------------------------------------------------------------- /378.kth-smallest-element-in-a-sorted-matrix.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/378.kth-smallest-element-in-a-sorted-matrix.rb -------------------------------------------------------------------------------- /380.insert-delete-getrandom-o1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/380.insert-delete-getrandom-o1.rb -------------------------------------------------------------------------------- /381.insert-delete-getrandom-o1-duplicates-allowed.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/381.insert-delete-getrandom-o1-duplicates-allowed.rb -------------------------------------------------------------------------------- /384.shuffle-an-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/384.shuffle-an-array.rb -------------------------------------------------------------------------------- /387.first-unique-character-in-a-string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/387.first-unique-character-in-a-string.rb -------------------------------------------------------------------------------- /388.longest-absolute-file-path.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/388.longest-absolute-file-path.rb -------------------------------------------------------------------------------- /39.combination-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/39.combination-sum.rb -------------------------------------------------------------------------------- /4.median-of-two-sorted-arrays.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/4.median-of-two-sorted-arrays.rb -------------------------------------------------------------------------------- /40.combination-sum-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/40.combination-sum-ii.rb -------------------------------------------------------------------------------- /409.longest-palindrome.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/409.longest-palindrome.rb -------------------------------------------------------------------------------- /41.first-missing-positive.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/41.first-missing-positive.rb -------------------------------------------------------------------------------- /416.partition-equal-subset-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/416.partition-equal-subset-sum.rb -------------------------------------------------------------------------------- /42.trapping-rain-water.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/42.trapping-rain-water.rb -------------------------------------------------------------------------------- /437.path-sum-iii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/437.path-sum-iii.rb -------------------------------------------------------------------------------- /44.wildcard-matching.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/44.wildcard-matching.rb -------------------------------------------------------------------------------- /442.find-all-duplicates-in-an-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/442.find-all-duplicates-in-an-array.rb -------------------------------------------------------------------------------- /445.add-two-numbers-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/445.add-two-numbers-ii.rb -------------------------------------------------------------------------------- /449.serialize-and-deserialize-bst.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/449.serialize-and-deserialize-bst.rb -------------------------------------------------------------------------------- /45.jump-game-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/45.jump-game-ii.rb -------------------------------------------------------------------------------- /450.delete-node-in-a-bst.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/450.delete-node-in-a-bst.rb -------------------------------------------------------------------------------- /451.sort-characters-by-frequency.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/451.sort-characters-by-frequency.rb -------------------------------------------------------------------------------- /46.permutations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/46.permutations.rb -------------------------------------------------------------------------------- /460.lfu-cache.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/460.lfu-cache.rb -------------------------------------------------------------------------------- /461.hamming-distance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/461.hamming-distance.rb -------------------------------------------------------------------------------- /47.permutations-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/47.permutations-ii.rb -------------------------------------------------------------------------------- /48.rotate-image.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/48.rotate-image.rb -------------------------------------------------------------------------------- /49.group-anagrams.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/49.group-anagrams.rb -------------------------------------------------------------------------------- /493.reverse-pairs.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/493.reverse-pairs.rb -------------------------------------------------------------------------------- /5.longest-palindromic-substring.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/5.longest-palindromic-substring.rb -------------------------------------------------------------------------------- /50.powx-n.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/50.powx-n.rb -------------------------------------------------------------------------------- /509.fibonacci-number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/509.fibonacci-number.rb -------------------------------------------------------------------------------- /51.n-queens.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/51.n-queens.rb -------------------------------------------------------------------------------- /515.find-largest-value-in-each-tree-row.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/515.find-largest-value-in-each-tree-row.rb -------------------------------------------------------------------------------- /516.longest-palindromic-subsequence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/516.longest-palindromic-subsequence.rb -------------------------------------------------------------------------------- /518.coin-change-2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/518.coin-change-2.rb -------------------------------------------------------------------------------- /52.n-queens-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/52.n-queens-ii.rb -------------------------------------------------------------------------------- /523.continuous-subarray-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/523.continuous-subarray-sum.rb -------------------------------------------------------------------------------- /53.maximum-subarray.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/53.maximum-subarray.rb -------------------------------------------------------------------------------- /535.encode-and-decode-tinyurl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/535.encode-and-decode-tinyurl.rb -------------------------------------------------------------------------------- /54.spiral-matrix.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/54.spiral-matrix.rb -------------------------------------------------------------------------------- /548.split-array-with-equal-sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/548.split-array-with-equal-sum.rb -------------------------------------------------------------------------------- /55.jump-game.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/55.jump-game.rb -------------------------------------------------------------------------------- /56.merge-intervals.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/56.merge-intervals.rb -------------------------------------------------------------------------------- /560.subarray-sum-equals-k.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/560.subarray-sum-equals-k.rb -------------------------------------------------------------------------------- /57.insert-interval.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/57.insert-interval.rb -------------------------------------------------------------------------------- /572.subtree-of-another-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/572.subtree-of-another-tree.rb -------------------------------------------------------------------------------- /587.erect-the-fence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/587.erect-the-fence.rb -------------------------------------------------------------------------------- /59.spiral-matrix-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/59.spiral-matrix-ii.rb -------------------------------------------------------------------------------- /6.zigzag-conversion.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/6.zigzag-conversion.rb -------------------------------------------------------------------------------- /61.rotate-list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/61.rotate-list.rb -------------------------------------------------------------------------------- /617.merge-two-binary-trees.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/617.merge-two-binary-trees.rb -------------------------------------------------------------------------------- /62.unique-paths.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/62.unique-paths.rb -------------------------------------------------------------------------------- /63.unique-paths-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/63.unique-paths-ii.rb -------------------------------------------------------------------------------- /66.plus-one.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/66.plus-one.rb -------------------------------------------------------------------------------- /661.image-smoother.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/661.image-smoother.rb -------------------------------------------------------------------------------- /666.path-sum-iv.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/666.path-sum-iv.rb -------------------------------------------------------------------------------- /673.number-of-longest-increasing-subsequence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/673.number-of-longest-increasing-subsequence.rb -------------------------------------------------------------------------------- /674.longest-continuous-increasing-subsequence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/674.longest-continuous-increasing-subsequence.rb -------------------------------------------------------------------------------- /678.valid-parenthesis-string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/678.valid-parenthesis-string.rb -------------------------------------------------------------------------------- /69.sqrtx.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/69.sqrtx.rb -------------------------------------------------------------------------------- /694.number-of-distinct-islands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/694.number-of-distinct-islands.rb -------------------------------------------------------------------------------- /695.max-area-of-island.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/695.max-area-of-island.rb -------------------------------------------------------------------------------- /7.reverse-integer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/7.reverse-integer.rb -------------------------------------------------------------------------------- /70.climbing-stairs.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/70.climbing-stairs.rb -------------------------------------------------------------------------------- /701.insert-into-a-binary-search-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/701.insert-into-a-binary-search-tree.rb -------------------------------------------------------------------------------- /704.binary-search.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/704.binary-search.rb -------------------------------------------------------------------------------- /706.design-hashmap.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/706.design-hashmap.rb -------------------------------------------------------------------------------- /718.maximum-length-of-repeated-subarray.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/718.maximum-length-of-repeated-subarray.rb -------------------------------------------------------------------------------- /719.find-k-th-smallest-pair-distance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/719.find-k-th-smallest-pair-distance.rb -------------------------------------------------------------------------------- /72.edit-distance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/72.edit-distance.rb -------------------------------------------------------------------------------- /73.set-matrix-zeroes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/73.set-matrix-zeroes.rb -------------------------------------------------------------------------------- /733.flood-fill.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/733.flood-fill.rb -------------------------------------------------------------------------------- /74.search-a-2d-matrix.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/74.search-a-2d-matrix.rb -------------------------------------------------------------------------------- /743.network-delay-time.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/743.network-delay-time.rb -------------------------------------------------------------------------------- /75.sort-colors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/75.sort-colors.rb -------------------------------------------------------------------------------- /76.minimum-window-substring.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/76.minimum-window-substring.rb -------------------------------------------------------------------------------- /765.couples-holding-hands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/765.couples-holding-hands.rb -------------------------------------------------------------------------------- /78.subsets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/78.subsets.rb -------------------------------------------------------------------------------- /783.minimum-distance-between-bst-nodes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/783.minimum-distance-between-bst-nodes.rb -------------------------------------------------------------------------------- /787.cheapest-flights-within-k-stops.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/787.cheapest-flights-within-k-stops.rb -------------------------------------------------------------------------------- /79.word-search.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/79.word-search.rb -------------------------------------------------------------------------------- /790.domino-and-tromino-tiling.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/790.domino-and-tromino-tiling.rb -------------------------------------------------------------------------------- /8.string-to-integer-atoi.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/8.string-to-integer-atoi.rb -------------------------------------------------------------------------------- /80.remove-duplicates-from-sorted-array-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/80.remove-duplicates-from-sorted-array-ii.rb -------------------------------------------------------------------------------- /81.search-in-rotated-sorted-array-ii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/81.search-in-rotated-sorted-array-ii.rb -------------------------------------------------------------------------------- /812.largest-triangle-area.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/812.largest-triangle-area.rb -------------------------------------------------------------------------------- /836.rectangle-overlap.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/836.rectangle-overlap.rb -------------------------------------------------------------------------------- /84.largest-rectangle-in-histogram.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/84.largest-rectangle-in-histogram.rb -------------------------------------------------------------------------------- /862.shortest-subarray-with-sum-at-least-k.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/862.shortest-subarray-with-sum-at-least-k.rb -------------------------------------------------------------------------------- /863.all-nodes-distance-k-in-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/863.all-nodes-distance-k-in-binary-tree.rb -------------------------------------------------------------------------------- /876.middle-of-the-linked-list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/876.middle-of-the-linked-list.rb -------------------------------------------------------------------------------- /88.merge-sorted-array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/88.merge-sorted-array.rb -------------------------------------------------------------------------------- /89.gray-code.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/89.gray-code.rb -------------------------------------------------------------------------------- /9.palindrome-number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/9.palindrome-number.rb -------------------------------------------------------------------------------- /91.decode-ways.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/91.decode-ways.rb -------------------------------------------------------------------------------- /938.range-sum-of-bst.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/938.range-sum-of-bst.rb -------------------------------------------------------------------------------- /94.binary-tree-inorder-traversal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/94.binary-tree-inorder-traversal.rb -------------------------------------------------------------------------------- /947.most-stones-removed-with-same-row-or-column.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/947.most-stones-removed-with-same-row-or-column.rb -------------------------------------------------------------------------------- /958.check-completeness-of-a-binary-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/958.check-completeness-of-a-binary-tree.rb -------------------------------------------------------------------------------- /973.k-closest-points-to-origin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/973.k-closest-points-to-origin.rb -------------------------------------------------------------------------------- /98.validate-binary-search-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/98.validate-binary-search-tree.rb -------------------------------------------------------------------------------- /980.unique-paths-iii.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/980.unique-paths-iii.rb -------------------------------------------------------------------------------- /99.recover-binary-search-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/99.recover-binary-search-tree.rb -------------------------------------------------------------------------------- /README.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/README.org -------------------------------------------------------------------------------- /data-structures/fenwick-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/data-structures/fenwick-tree.rb -------------------------------------------------------------------------------- /data-structures/heap.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/data-structures/heap.rb -------------------------------------------------------------------------------- /data-structures/segment-tree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/data-structures/segment-tree.rb -------------------------------------------------------------------------------- /data-structures/sparse-table.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/data-structures/sparse-table.rb -------------------------------------------------------------------------------- /data-structures/treap.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/data-structures/treap.rb -------------------------------------------------------------------------------- /data-structures/union-find.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/data-structures/union-find.rb -------------------------------------------------------------------------------- /imgs/meme0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/imgs/meme0.jpg -------------------------------------------------------------------------------- /imgs/meme1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/imgs/meme1.jpg -------------------------------------------------------------------------------- /imgs/meme2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/imgs/meme2.jpg -------------------------------------------------------------------------------- /other/build-array-from-count-of-bigger-numbers-before-self.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/build-array-from-count-of-bigger-numbers-before-self.rb -------------------------------------------------------------------------------- /other/distance-between-2-nodes-in-BST.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/distance-between-2-nodes-in-BST.rb -------------------------------------------------------------------------------- /other/fair-work-load.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/fair-work-load.rb -------------------------------------------------------------------------------- /other/generic-cow-protests.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/generic-cow-protests.rb -------------------------------------------------------------------------------- /other/longest-subarray-sum-equals-s.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/longest-subarray-sum-equals-s.rb -------------------------------------------------------------------------------- /other/longest-subsequence-of-balanced-parentheses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/longest-subsequence-of-balanced-parentheses.rb -------------------------------------------------------------------------------- /other/lowest-common-territory-of-places.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/lowest-common-territory-of-places.rb -------------------------------------------------------------------------------- /other/merge-two-intervals.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/merge-two-intervals.rb -------------------------------------------------------------------------------- /other/minimum-flip-to-sorted-string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/minimum-flip-to-sorted-string.rb -------------------------------------------------------------------------------- /other/swap-lex-order.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/swap-lex-order.rb -------------------------------------------------------------------------------- /other/villagers-and-defenders.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACEMerlin/leetcode-ruby/HEAD/other/villagers-and-defenders.rb --------------------------------------------------------------------------------