🛠 Problems I solved on LeetCode.com, updating...
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
001. Two Sum
002. Add Two Numbers
006. ZigZag Conversion
007. Reverse Integer
009. Palindrome Number
014. Longest Common Prefix
015. 3Sum
016. 3Sum Closest
018. 4Sum
019. Remove Nth Node From End of List
021. Merge Two Sorted Lists
022. Generate Parentheses
024. Swap Nodes in Pairs
026. Remove Duplicates from Sorted Array
027. Remove Element
028. Implement strStr()
035. Search Insert Position
036. Valid Sudoku
037. Sudoku Solver
046. Permutations
047. Permutations II
051. N-Queens
052. N-Queens II
053. Maximum Subarray
066. Plus One
070. Climbing Stairs
078. Subsets
083. Remove Duplicates from Sorted List
088. Merge Sorted Array
094. Binary Tree Inorder Traversal
099. Recover Binary Search Tree
101. Symmetric Tree
102. Binary Tree Level Order Traversal
104. Maximum Depth of Binary Tree
105. Construct Binary Tree from Preorder and Inorder Traversal
106. Construct Binary Tree from Inorder and Postorder Traversal
109. Convert Sorted List to Binary Search Tree
111. Minimum Depth of Binary Tree
112. Path Sum
116. Populating Next Right Pointers in Each Node
117. Populating Next Right Pointers in Each Node II
118. Pascal's Triangle
119. Pascal's Triangle II
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
125. Valid Palindrome
136. Single Number
137. Single Number II
141. Linked List Cycle
144. Binary Tree Preorder Traversal
145. Binary Tree Postorder Traversal
160. Intersection of Two Linked Lists
167. Two Sum II - Input array is sorted
169. Majority Element
171. Excel Sheet Column Number
189. Rotate Array
202. Happy Number
203. Remove Linked List Elements
204. Count Primes
205. Isomorphic Strings
206. Reverse Linked List
216. Combination Sum III
217. Contains Duplicate
219. Contains Duplicate II
231. Power of Two
234. Palindrome Linked List
235. Lowest Common Ancestor of a Binary Search Tree
236. Lowest Common Ancestor of a Binary Tree
237. Delete Node in a Linked List
238. Product of Array Except Self
242. Valid Anagram
258. Add Digits
260. Single Number III
268. Missing Number
274. H-Index
275. H-Index II
283. Move Zeroes
287. Find the Duplicate Number
290. Word Pattern
297. Serialize and Deserialize Binary Tree
300. Longest Increasing Subsequence
326. Power of Three
328. Odd Even Linked List
342. Power of Four
344. Reverse String
345. Reverse Vowels of a String
347. Top K Frequent Elements
349. Intersection of Two Arrays
350. Intersection of Two Arrays II
357. Count Numbers with Unique Digits
367. Valid Perfect Square
371. Sum of Two Integers
387. First Unique Character in a String
389. Find the Difference
401. Binary Watch
409. Longest Palindrome
412. Fizz Buzz
414. Third Maximum Number
42. Trapping Rain Water
429. N-ary Tree Level Order Traversal
438. Find All Anagrams in a String
442. Find All Duplicates in an Array
445. Add Two Numbers II
447. Number of Boomerangs
448. Find All Numbers Disappeared in an Array
451. Sort Characters By Frequency
454. 4Sum II
461. Hamming Distance
463. Island Perimeter
476. Number Complement
485. Max Consecutive Ones
495. Teemo Attacking
496. Next Greater Element I
500. Keyboard Row
507. Perfect Number
508. Most Frequent Subtree Sum
520. Detect Capital
526. Beautiful Arrangement
532. K-diff Pairs in an Array
535. Encode and Decode TinyURL
557. Reverse Words in a String III
561. Array Partition I
565. Array Nesting
566. Reshape the Matrix
575. Distribute Candies
581. Shortest Unsorted Continuous Subarray
589. N-ary Tree Preorder Traversal
590. N-ary Tree Postorder Traversal
594. Longest Harmonious Subsequence
599. Minimum Index Sum of Two Lists
605. Can Place Flowers
609. Find Duplicate File in System
617. Merge Two Binary Trees
628. Maximum Product of Three Numbers
637. Average of Levels in Binary Tree
643. Maximum Average Subarray I
645. Set Mismatch
653. Two Sum IV - Input is a BST
657. Judge Route Circle
661. Image Smoother
665. Non-decreasing Array
667. Beautiful Arrangement II
669. Trim a Binary Search Tree
674. Longest Continuous Increasing Subsequence
676. Implement Magic Dictionary
682. Baseball Game
690. Employee Importance
695. Max Area of Island
697. Degree of an Array
700. Search in a Binary Search Tree
705. Design HashSet
706. Design HashMap
709. To Lower Case
717. 1-bit and 2-bit Characters
720. Longest Word in Dictionary
724. Find Pivot Index
728. Self Dividing Numbers
739. Daily Temperatures
746. Min Cost Climbing Stairs
747. Largest Number At Least Twice of Others
748. Shortest Completing Word
760. Find Anagram Mappings
766. Toeplitz Matrix
767. Reorganize String
771. Jewels and Stones
796. Rotate String
804. Unique Morse Code Words
806. Number of Lines To Write String
811. Subdomain Visit Count
817. Linked List Components
819. Most Common Word
830. Positions of Large Groups
832. Flipping an Image
840. Magic Squares In Grid
844. Backspace String Compare
849. Maximize Distance to Closest Person
852. Peak Index in a Mountain Array
868. Binary Gap
868. Transpose Matrix
872. Leaf-Similar Trees
876. Middle of the Linked List
905. Sort Array By Parity
README.md

README.md

LeetCode

Problems I solved on LeetCode.com, updating...

Language

  1. Python 2 and Python 3
  2. CPP
  3. Java
  4. C