Some of the leetcode problems solved in C++. If you find a more optimal approach most welcome to submit a Pull request.
- Add One row to tree -- Solution
- Arithmetic Slices -- Solution
- Clone Graph -- Solution
- Container with most water -- Solution
- Kids with greatest number of candies -- Solution
- The K weakest rows in a matrix -- Solution
- Letter case permutation -- Solution
- Linked List Cycle -- Solution
- Merge Two Sorted Lists -- Solution
- Number of 1 bits -- Solution
- Palindrome Number -- Solution
- Palindrome Linked List -- Solution
- Remove Duplicates from sorted array -- Solution
- Remove Element -- Solution
- Reverse Integer -- Solution
- Running Sum -- Solution
- Shuffle the array -- Solution
- Trim BST -- Solution
- Keys And Rooms -- Solution
- Russian Doll Envelopes -- Solution
- Flip Binary Tree to Match Preorder Traversal -- Solution
- Minimum Operations to Make Array Equal -- Solution
- Letter Combinations Phone Number -- Solution