https://github.com/gzc/leetcode
LeetCode solutions.
https://github.com/gzc/leetcode
leetcode
Last synced: 3 months ago
JSON representation
LeetCode solutions.
- Host: GitHub
- URL: https://github.com/gzc/leetcode
- Owner: gzc
- License: mit
- Created: 2015-03-15T12:04:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T07:05:48.000Z (almost 2 years ago)
- Last Synced: 2025-06-05T07:06:33.188Z (4 months ago)
- Topics: leetcode
- Language: C++
- Homepage:
- Size: 1.39 MB
- Stars: 165
- Watchers: 11
- Forks: 52
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# leetcode
LeetCode solutions.
LeetCode solutions in English.
LeetCode中文解答。I uploaded some codes [here](https://zhenchaogan.gitbook.io/leetcode-solution/)
[Video solutions](https://www.youtube.com/watch?v=iZHDx-k2Mxw&list=PLSY2q1ZYmTARCSZvXIwO79Lb9LB5EBX-a&index=2) [中文解答](https://www.youtube.com/watch?v=6S1eKneFu8I&list=PLSY2q1ZYmTATCxSnwd_NohDmmt8PTBzrq) [中文bilibili解答](https://space.bilibili.com/1551381295/channel/detail?cid=167862)
Problem
Video Solution
LeetCode 1. Two Sum
English
中文Youtube
中文b站
LeetCode 2. Add Two Numbers
English
中文Youtube
中文b站
LeetCode 3. Longest Substring Without Repeating Characters
English
中文Youtube
中文b站
LeetCode 4. Median of Two Sorted Arrays
English
中文Youtube
中文b站
LeetCode 5. Longest Palindromic Substring
English
中文Youtube
中文b站
LeetCode 6. ZigZag Conversion
English
中文Youtube
中文b站
LeetCode 7. Reverse Integer
English
中文Youtube
中文b站
LeetCode 8. String to Integer (atoi)
English
中文Youtube
中文b站
LeetCode 9. Palindrome Number
English
中文Youtube
中文b站
LeetCode 10. Regular Expression Matching
English
中文Youtube
中文b站
LeetCode 11. Container With Most Water
English
中文Youtube
中文b站
LeetCode 12. Integer to Roman
English
中文Youtube
中文b站
LeetCode 13. Roman to Integer
English
中文Youtube
中文b站
LeetCode 14. Longest Common Prefix
English
中文Youtube
中文b站
LeetCode 15. 3Sum
English
中文Youtube
中文b站
LeetCode 16. 3Sum Closest
English
中文Youtube
中文b站
LeetCode 17. Letter Combinations of a Phone Number
English
中文Youtube
中文b站
LeetCode 18. 4Sum
English
中文Youtube
中文b站
LeetCode 19. Remove Nth Node From End of List
English
中文Youtube
中文b站
LeetCode 20. Valid Parentheses
English
中文Youtube
中文b站
LeetCode 21. Merge Two Sorted Lists
English
中文Youtube
中文b站
LeetCode 22. Generate Parentheses
English
中文Youtube
中文b站
LeetCode 23. Merge k Sorted Lists
English
中文Youtube
中文b站
LeetCode 24. Swap Nodes in Pairs
English
中文Youtube
中文b站
LeetCode 25. Reverse Nodes in k-Group
English
中文Youtube
中文b站
LeetCode 26. Remove Duplicates from Sorted Array
English
中文Youtube
中文b站
LeetCode 27. Remove Element
English
中文Youtube
中文b站
LeetCode 28. Implement strStr()
English
中文Youtube
中文b站
LeetCode 29. Divide Two Integers
English
中文Youtube
中文b站
LeetCode 30. Substring with Concatenation of All Words
English
中文Youtube
中文b站
LeetCode 31. Next Permutation
English
中文Youtube
中文b站
LeetCode 32. Longest Valid Parentheses
English
中文Youtube
中文b站
LeetCode 33. Search in Rotated Sorted Array
English
中文Youtube
中文b站
LeetCode 42. Trapping Rain Water
English
中文Youtube
中文b站
LeetCode 56. Merge Intervals
English
中文Youtube
中文b站
LeetCode 67. Add Binary
English
中文Youtube
中文b站
LeetCode 81. Search in Rotated Sorted Array II
English
中文Youtube
中文b站
LeetCode 125. Valid Palindrome
English
中文Youtube
中文b站
LeetCode 153. Find Minimum in Rotated Sorted Array
English
中文Youtube
中文b站
LeetCode 154. Find Minimum in Rotated Sorted Array II
English
中文Youtube
中文b站
LeetCode 157. Read N Characters Given Read4
English
中文Youtube
中文b站
LeetCode 158. Read N Characters Given Read4 II - Call multiple times
English
中文Youtube
中文b站
LeetCode 236. Lowest Common Ancestor of a Binary Tree
English
中文Youtube
中文b站
LeetCode 238. Product of Array Except Self
English
中文Youtube
中文b站
LeetCode 269. Alien Dictionary
English
中文Youtube
中文b站
Leetcode 295. Find Median from Data Stream
English
中文Youtube
中文b站
Leetcode 297. Serialize and Deserialize Binary Tree
English
中文Youtube
中文b站
LeetCode 300. Longest Increasing Subsequence
English
中文Youtube
中文b站
LeetCode 301. Remove Invalid Parentheses
English
中文Youtube
中文b站
LeetCode 336. Palindrome Pairs
English
中文Youtube
中文b站
LeetCode 407. Trapping Rain Water II
English
中文Youtube
中文b站
LeetCode 415. Add Strings
English
中文Youtube
中文b站
LeetCode 426. Convert Binary Search Tree to Sorted Doubly Linked List
English
中文Youtube
中文b站
LeetCode 489. Robot Room Cleaner
English
中文Youtube
中文b站
LeetCode 560. Subarray Sum Equals K
English
中文Youtube
中文b站
LeetCode 680. Valid Palindrome II
English
中文Youtube
中文b站
LeetCode 710. Random Pick with Blacklist
English
中文Youtube
中文b站
LeetCode 721. Accounts Merge
English
中文Youtube
中文b站
LeetCode 863. All Nodes Distance K in Binary Tree
English
中文Youtube
中文b站
LeetCode 918. Maximum Sum Circular Subarray
English
中文Youtube
中文b站
LeetCode 953. Verifying an Alien Dictionary
English
中文Youtube
中文b站
LeetCode 973. K Closest Points to Origin
English
中文Youtube
中文b站
LeetCode 1249. Minimum Remove to Make Valid Parentheses
English
中文Youtube
中文b站
LeetCode 1428. Leftmost Column with at Least a One
English
中文Youtube
中文b站
LeetCode 1570. Dot Product of Two Sparse Vectors
English
中文Youtube
中文b站
LeetCode 1644. Lowest Common Ancestor of a Binary Tree II
English
中文Youtube
中文b站
LeetCode 1650. Lowest Common Ancestor of a Binary Tree III
English
中文Youtube
中文b站
LeetCode 1676. Lowest Common Ancestor of a Binary Tree IV
English
中文Youtube
中文b站
LeetCode 1727. Largest Submatrix With Rearrangements
English
中文Youtube
中文b站
LeetCode 1751. Maximum Number of Events That Can Be Attended II
English
中文Youtube
中文b站
LeetCode 1754. Largest Merge Of Two Strings
English
中文Youtube
中文b站
LeetCode 1755. Closest Subsequence Sum
English
中文Youtube
中文b站
LeetCode 1760. Minimum Limit of Balls in a Bag
English
中文Youtube
中文b站
LeetCode 1761. Minimum Degree of a Connected Trio in a Graph
English
中文Youtube
中文b站
LeetCode 1764. Form Array by Concatenating Subarrays of Another Array
English
中文Youtube
中文b站
LeetCode 1765. Map of Highest Peak
English
中文Youtube
中文b站
LeetCode 1766. Tree of Coprimes
English
中文Youtube
中文b站
LeetCode 1770. Maximum Score from Performing Multiplication Operations
English
中文Youtube
中文b站
LeetCode 1771. Maximize Palindrome Length From Subsequences
English
中文Youtube
中文b站
LeetCode 1774. Closest Dessert Cost
English
中文Youtube
中文b站
LeetCode 1775. Equal Sum Arrays With Minimum Number of Operations
English
中文Youtube
中文b站
LeetCode 1776. Car Fleet II
English
中文Youtube
中文b站
LeetCode 1778. Shortest Path in a Hidden Grid
English
中文Youtube
中文b站
LeetCode 1779. Find Nearest Point That Has the Same X or Y Coordinate
English
中文Youtube
中文b站
LeetCode 1780. Check if Number is a Sum of Powers of Three
English
中文Youtube
中文b站
LeetCode 1781. Sum of Beauty of All Substrings
English
中文Youtube
中文b站
LeetCode 1782. Count Pairs Of Nodes
English
中文Youtube
中文b站
LeetCode 1784. Check if Binary String Has at Most One Segment of Ones
English
中文Youtube
中文b站
LeetCode 1785. Minimum Elements to Add to Form a Given Sum
English
中文Youtube
中文b站
LeetCode 1786. Number of Restricted Paths From First to Last Node
English
中文Youtube
中文b站
LeetCode 1787. Make the XOR of All Segments Equal to Zero
English
中文Youtube
中文b站
LeetCode 1788. Maximize the Beauty of the Garden
English
中文Youtube
中文b站
LeetCode 1790. Check if One String Swap Can Make Strings Equal
English
中文Youtube
中文b站
LeetCode 1791. Find Center of Star Graph
English
中文Youtube
中文b站
LeetCode 1792. Maximum Average Pass Ratio
English
中文Youtube
中文b站
LeetCode 1793. Maximum Score of a Good Subarray
English
中文Youtube
中文b站
LeetCode 1794. Count Pairs of Equal Substrings With Minimum Difference
English
中文Youtube
中文b站
LeetCode 1796. Second Largest Digit in a String
English
中文Youtube
中文b站
LeetCode 1797. Design Authentication Manager
English
中文Youtube
中文b站
LeetCode 1798. Maximum Number of Consecutive Values You Can Make
English
中文Youtube
中文b站
LeetCode 1799. Maximize Score After N Operations
English
中文Youtube
中文b站
LeetCode 1800. Maximum Ascending Subarray Sum
English
中文Youtube
中文b站
LeetCode 1801. Number of Orders in the Backlog
English
中文Youtube
中文b站
LeetCode 1802. Maximum Value at a Given Index in a Bounded Array
English
中文Youtube
中文b站
LeetCode 1803. Count Pairs With XOR in a Range
English
中文Youtube
中文b站
LeetCode 1804. Implement Trie II (Prefix Tree)
English
中文Youtube
中文b站
LeetCode 1805. Number of Different Integers in a String
English
中文Youtube
中文b站
LeetCode 1807. Evaluate the Bracket Pairs of a String
English
中文Youtube
中文b站
LeetCode 1808. Maximize Number of Nice Divisors
English
中文Youtube
中文b站
LeetCode 1810. Minimum Path Cost in a Hidden Grid
English
中文Youtube
中文b站
LeetCode 1812. Determine Color of a Chessboard Square
English
中文Youtube
中文b站
LeetCode 1813. Sentence Similarity III
English
中文Youtube
中文b站
LeetCode 1814. Count Nice Pairs in an Array
English
中文Youtube
中文b站
LeetCode 1815. Maximum Number of Groups Getting Fresh Donuts
English
中文Youtube
中文b站
LeetCode 1816. Truncate Sentence
English
中文Youtube
中文b站
LeetCode 1817. Finding the Users Active Minutes
English
中文Youtube
中文b站
LeetCode 1818. Minimum Absolute Sum Difference
English
中文Youtube
中文b站
LeetCode 1819. Number of Different Subsequences GCDs
English
中文Youtube
中文b站
LeetCode 1820. Maximum Number of Accepted Invitations
English
中文Youtube
中文b站
LeetCode 1822. Sign of the Product of an Array
English
中文Youtube
中文b站
LeetCode 1824. Minimum Sideway Jumps
English
中文Youtube
中文b站
LeetCode 1825. Finding MK Average
English
中文Youtube
中文b站
LeetCode 1826. Faulty Sensor
English
中文Youtube
中文b站
LeetCode 1827. Minimum Operations to Make the Array Increasing
English
中文Youtube
中文b站
LeetCode 1828. Queries on Number of Points Inside a Circle
English
中文Youtube
中文b站
LeetCode 1829. Maximum XOR for Each Query
English
中文Youtube
中文b站
LeetCode 1830. Minimum Number of Operations to Make String Sorted
English
中文Youtube
中文b站
LeetCode 1832. Check if the Sentence Is Pangram
English
中文Youtube
中文b站
LeetCode 1833. Maximum Ice Cream Bars
English
中文Youtube
中文b站
LeetCode 1834. Single-Threaded CPU
English
中文Youtube
中文b站
LeetCode 1835. Find XOR Sum of All Pairs Bitwise AND
English
中文Youtube
中文b站
LeetCode 1836. Remove Duplicates From an Unsorted Linked List
English
中文Youtube
中文b站
LeetCode 1837. Sum of Digits in Base K
English
中文Youtube
中文b站
LeetCode 1839. Longest Substring Of All Vowels in Order
English
中文Youtube
中文b站
LeetCode 1840. Maximum Building Height
English
中文Youtube
中文b站
LeetCode 1847. Closest Room
English
中文Youtube
中文b站
LeetCode 1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
English
中文Youtube
中文b站
LeetCode 1851. Minimum Interval to Include Each Query
English
中文Youtube
中文b站