Leetcode Solutions in Ruby
Please give this repo a ⭐ if it inspires you.
| LC # | Description |
|---|---|
| 1108 | Defanging an IP Address |
| 938 | Range Sum of BST |
| 1614 | Maximum Nesting Depth of the Parentheses |
| 1832 | Check if the Sentence Is Pangram |
| 21 | Merge Two Sorted Lists |
| 141 | Linked List Cycle |
| 20 | Valid Parentheses |
| 617 | Merge Two Binary Trees |
| 897 | Increasing Order Search Tree |
| 346 | Moving Average from Data Stream |
| 1748 | Sum of Unique Elements |
| 1351 | Count Negative Numbers in a Sorted Matrix |
| 905 | Sort Array By Parity |
| 344 | Reverse String |
| 1460 | Make Two Arrays Equal by Reversing Sub-arrays |
| 104 | Maximum Depth of Binary Tree |
| 977 | Squares of a Sorted Array |
| 226 | Invert Binary Tree |
| 1047 | Remove All Adjacent Duplicates In String |
| 206 | Reverse Linked List |
| 496 | Next Greater Element I |
| 136 | Single Number |
| 463 | Island Perimeter |
| 349 | Intersection of Two Arrays |
| 637 | Average of Levels in Binary Tree |
| 1002 | Find Common Characters |
| 509 | Fibonacci Number |
| 766 | Toeplitz Matrix |
| 704 | Binary Search |
| 1160 | Find Words That Can Be Formed by Characters |
| 412 | Fizz Buzz |
| 266 | Palindrome Permutation |
| 145 | Binary Tree Postorder Traversal |
| 169 | Majority Element |
| 242 | Valid Anagram |
| 217 | Contains Duplicate |
| 283 | Move Zeroes |
| 1260 | Shift 2D Grid |
| 700 | Search in a Binary Search Tree |
| 706 | Design HashMap |
| 844 | Backspace String Compare |
| 191 | Number of 1 Bits |
| 1480 | Running Sum of 1d Array |
| 160 | Intersection of Two Linked Lists |
| 88 | Merge Sorted Array |
| 1332 | Remove Palindromic Subsequences |
| 1925 | Count Square Sum Triples |
| 859 | Buddy Strings |
| 118 | Pascal's Triangle |
| 557 | Reverse Words in a String III |
| 1137 | N-th Tribonacci Number |
| 976 | Largest Perimeter Triangle |
| 219 | Contains Duplicate II |
| 645 | Set Mismatch |
| 1662 | Check If Two String Arrays are Equivalent |
| 1929 | Concatenation of Array |
| LC # | Description |
|---|---|
| 78 | Subsets |
| 82 | Remove Duplicates from Sorted List II |
| 138 | Copy List with Random Pointer |
| 946 | Validate Stack Sequences |
| 316 | Remove Duplicate Letters |
| 763 | Partition Labels |
| 1007 | Minimum Domino Rotations For Equal Row |
| 991 | Broken Calculator |
| 1663 | Smallest String With A Given Numeric Value |
| 881 | Boats to Save People |
| 81 | Search in Rotated Sorted Array II |
| 287 | Find the Duplicate Number |
| 74 | Search a 2D Matrix |
| 1721 | Swapping Nodes in a Linked List |
| 11 | Container With Most Water |
| 538 | Convert BST to Greater Tree |
| 230 | Kth Smallest Element in a BST |
| 535 | Encode and Decode TinyURL |
| 284 | Peeking Iterator |
| 341 | Flatten Nested List Iterator |
| 216 | Combination Sum III |
| 47 | Permutations II |
| 743 | Network Delay Time |
| 1302 | Deepest Leaves Sum |
| 1461 | Check If a String Contains All Binary Codes of Size K |
| 167 | Two Sum II - Input Array Is Sorted |
| 3 | Longest Substring Without Repeating Characters |
| 1658 | Minimum Operations to Reduce X to Zero |
| 1695 | Maximum Erasure Value |
| 120 | Triangle |
| 583 | Delete Operation for Two Strings |
| 1048 | Longest String Chain |
| 5 | Longest Palindromic Substring |
| 820 | Short Encoding of Words |
| 215 | Kth Largest Element in an Array |
| 1570 | Dot Product of Two Sparse Vectors |
| 339 | Nested List Weight Sum |
| 1382 | Balance a Binary Search Tree |
| 1762 | Buildings With an Ocean View |
| 665 | Non-decreasing Array |
| 1423 | Maximum Points You Can Obtain from Cards |
| 199 | Binary Tree Right Side View |
| 102 | Binary Tree Level Order Traversal |
| 105 | Construct Binary Tree from Preorder and Inorder Traversal |
| 92 | Reverse Linked List II |
| 236 | Lowest Common Ancestor of a Binary Tree |
| 114 | Flatten Binary Tree to Linked List |
| 86 | Partition List |
| 34 | Find First and Last Position of Element in Sorted Array |
| 890 | Find and Replace Pattern |
| 307 | Range Sum Query - Mutable |
| 240 | Search a 2D Matrix II |
| 62 | Unique Paths |
| 1457 | Pseudo-Palindromic Paths in a Binary Tree |
| 113 | Path Sum II |
| 622 | Design Circular Queue |
| 990 | Satisfiability of Equality Equations |
| 19 | Remove Nth Node From End of List |
| 658 | Find K Closest Elements |
| 91 | Decode Ways |
| 1578 | Minimum Time to Make Rope Colorful |
| 16 | 3Sum Closest |
| 1328 | Break a Palindrome |
| 653 | Two Sum IV - Input is a BST |
| 334 | Increasing Triplet Subsequence |
| 2095 | Delete the Middle Node of a Linked List |
| 38 | Count and Say |
| 1239 | Maximum Length of a Concatenated String with Unique Characters |
| 523 | Continuous Subarray Sum |
| 49 | Group Anagrams |
| 433 | Minimum Genetic Mutation |
| LC # | Description |
|---|---|
| 410 | Split Array Largest Sum |
| 32 | Longest Valid Parentheses |
| 968 | Binary Tree Cameras |
| 76 | Minimum Window Substring |
| 2136 | Earliest Possible Day of Full Bloom |