/leetcode-solutions

Solution to LeetCode problems in C++.

Primary LanguageC++

Leetcode Solutions

Some of the leetcode problems solved in C++. If you find a more optimal approach most welcome to submit a Pull request.

  1. Add One row to tree -- Solution
  2. Arithmetic Slices -- Solution
  3. Clone Graph -- Solution
  4. Container with most water -- Solution
  5. Kids with greatest number of candies -- Solution
  6. The K weakest rows in a matrix -- Solution
  7. Letter case permutation -- Solution
  8. Linked List Cycle -- Solution
  9. Merge Two Sorted Lists -- Solution
  10. Number of 1 bits -- Solution
  11. Palindrome Number -- Solution
  12. Palindrome Linked List -- Solution
  13. Remove Duplicates from sorted array -- Solution
  14. Remove Element -- Solution
  15. Reverse Integer -- Solution
  16. Running Sum -- Solution
  17. Shuffle the array -- Solution
  18. Trim BST -- Solution
  19. Keys And Rooms -- Solution
  20. Russian Doll Envelopes -- Solution
  21. Flip Binary Tree to Match Preorder Traversal -- Solution
  22. Minimum Operations to Make Array Equal -- Solution
  23. Letter Combinations Phone Number -- Solution