/LeetCode-Solutions

Solutions for LeetCode Problems

Primary LanguageC++MIT LicenseMIT

Solutions are based on C++.

  • 10. Regular Expression x3
  • [] 17. Letter Combinations of a Phone Number
  • 21. Merge Two Sorted Lists
  • 23. Merge K Sorted Lists
  • 29.Divide Two Integers x4
  • [] 31. Next Permutation x3
  • 34. Find First and Last Position of Element in Sorted Array x2
  • 50. pow
  • 51. N-Queens
  • [] 54. Spirail Matrix
  • 56. Merge Intervals
  • [] 65. Valid Number x2
  • 67. Add Binary x4
  • 88. Merge Sorted Array
  • 91.Decode Ways x3
  • 124. Binary Tree Maximum Path Sum x6
  • 128. Longest Consecutive Sequence
  • 133. Clone Graph x2
  • 138.Copy List with Random Pointer x3
  • 139. Word Break x3
  • [] 143 Reorder List x2
  • 157. Read N Characters Given Read4
  • [] 158. Read N Characters Given Read4 II x2
  • [] 161. One Edit Distance
  • 200. Number of Islands
  • 227. Basic Calculator II
  • 236. Lowest Common Ancestor x2
  • 238. Product of Array Except Self x3
  • 215. Kth Largest Element in an Array x3
  • 251. Flatten 2D Vector
  • 253. Meeting Rooms II x8
  • 257. Binary Tree Paths x2
  • 269. Alien Dictionary x4
  • 273.Integer to English Words
  • 277. Find the Celebrityx2
  • 278. First Bad Version x2
  • [] 282. Expression Add Operators x2
  • 283. Move Zeroes x4
  • [] 286. Walls and Gates
  • 297. Serialize and Deserialize Binary Tree x4
  • 301. Remove Invalid Parentheses x6
  • [] 304.Range Sum Query 2D 1. Immutable
  • 314. Binary Tree Vertical Order Traversal x2
  • 336. Palindrome Pairs
  • 341. Flatten Nested List Iterator
  • 347. Top K
  • 350. Intersection of Two Arrays II
  • 413. Arithmetic Slicesf
  • 426. Convert Binary Search Tree to Sorted Doubly Linked List x6
  • 438. Find All Anagrams in a String
  • 442. Find All Duplicates in an Array
  • [] 480. Sliding Window Median
  • [] 491. Increasing Subsequences
  • [] 494. Target Sum
  • [] 523. Continuous Subarray Sum
  • 543. Diameter of Binary Tree
  • [] 554. Brick Wall
  • 560. Subarray Sum Equals K x7
  • 621. Task Scheduler x2
  • 560. Subarray Sum Equals K x6
  • 621. Task Scheduler x3
  • [] 689. Maximum Sum of 3 Non-Overlapping Subarrays x2
  • [] 670. Maximum Swap
  • 674. Longest Continuous Increasing Subsequence x2
  • 703. Kth Largest Element in a Stream
  • 784. Letter Case Permutation
  • [] 791. Custom Sort String
  • [] 825. Friends Of Appropriate Ages
  • 844. Backspace String Compare
  • 865. Smallest Subtree with all the Deepest Nodes
  • [] 894. All Possible Full Binary Trees
  • 921. Minimum Add to Make Parentheses Valid