Skip to content

Repository files navigation

leetcode

LeetCode solutions. LeetCode solutions in English. LeetCode中文解答。

I uploaded some codes here

Video solutions中文解答中文bilibili解答

ProblemVideo Solution
LeetCode 1. Two SumEnglish中文Youtube中文b站
LeetCode 2. Add Two NumbersEnglish中文Youtube中文b站
LeetCode 3. Longest Substring Without Repeating CharactersEnglish中文Youtube中文b站
LeetCode 4. Median of Two Sorted ArraysEnglish中文Youtube中文b站
LeetCode 5. Longest Palindromic SubstringEnglish中文Youtube中文b站
LeetCode 6. ZigZag ConversionEnglish中文Youtube中文b站
LeetCode 7. Reverse IntegerEnglish中文Youtube中文b站
LeetCode 8. String to Integer (atoi)English中文Youtube中文b站
LeetCode 9. Palindrome NumberEnglish中文Youtube中文b站
LeetCode 10. Regular Expression MatchingEnglish中文Youtube中文b站
LeetCode 11. Container With Most WaterEnglish中文Youtube中文b站
LeetCode 12. Integer to RomanEnglish中文Youtube中文b站
LeetCode 13. Roman to IntegerEnglish中文Youtube中文b站
LeetCode 14. Longest Common PrefixEnglish中文Youtube中文b站
LeetCode 15. 3SumEnglish中文Youtube中文b站
LeetCode 16. 3Sum ClosestEnglish中文Youtube中文b站
LeetCode 17. Letter Combinations of a Phone NumberEnglish中文Youtube中文b站
LeetCode 18. 4SumEnglish中文Youtube中文b站
LeetCode 19. Remove Nth Node From End of ListEnglish中文Youtube中文b站
LeetCode 20. Valid ParenthesesEnglish中文Youtube中文b站
LeetCode 21. Merge Two Sorted ListsEnglish中文Youtube中文b站
LeetCode 22. Generate ParenthesesEnglish中文Youtube中文b站
LeetCode 23. Merge k Sorted ListsEnglish中文Youtube中文b站
LeetCode 24. Swap Nodes in PairsEnglish中文Youtube中文b站
LeetCode 25. Reverse Nodes in k-GroupEnglish中文Youtube中文b站
LeetCode 26. Remove Duplicates from Sorted ArrayEnglish中文Youtube中文b站
LeetCode 27. Remove ElementEnglish中文Youtube中文b站
LeetCode 28. Implement strStr()English中文Youtube中文b站
LeetCode 29. Divide Two IntegersEnglish中文Youtube中文b站
LeetCode 30. Substring with Concatenation of All WordsEnglish中文Youtube中文b站
LeetCode 31. Next PermutationEnglish中文Youtube中文b站
LeetCode 32. Longest Valid ParenthesesEnglish中文Youtube中文b站
LeetCode 33. Search in Rotated Sorted ArrayEnglish中文Youtube中文b站
LeetCode 42. Trapping Rain WaterEnglish中文Youtube中文b站
LeetCode 56. Merge IntervalsEnglish中文Youtube中文b站
LeetCode 67. Add BinaryEnglish中文Youtube中文b站
LeetCode 81. Search in Rotated Sorted Array IIEnglish中文Youtube中文b站
LeetCode 125. Valid PalindromeEnglish中文Youtube中文b站
LeetCode 153. Find Minimum in Rotated Sorted ArrayEnglish中文Youtube中文b站
LeetCode 154. Find Minimum in Rotated Sorted Array IIEnglish中文Youtube中文b站
LeetCode 157. Read N Characters Given Read4English中文Youtube中文b站
LeetCode 158. Read N Characters Given Read4 II - Call multiple timesEnglish中文Youtube中文b站
LeetCode 236. Lowest Common Ancestor of a Binary TreeEnglish中文Youtube中文b站
LeetCode 238. Product of Array Except SelfEnglish中文Youtube中文b站
LeetCode 269. Alien DictionaryEnglish中文Youtube中文b站
Leetcode 295. Find Median from Data StreamEnglish中文Youtube中文b站
Leetcode 297. Serialize and Deserialize Binary TreeEnglish中文Youtube中文b站
LeetCode 300. Longest Increasing SubsequenceEnglish中文Youtube中文b站
LeetCode 301. Remove Invalid ParenthesesEnglish中文Youtube中文b站
LeetCode 336. Palindrome PairsEnglish中文Youtube中文b站
LeetCode 407. Trapping Rain Water IIEnglish中文Youtube中文b站
LeetCode 415. Add StringsEnglish中文Youtube中文b站
LeetCode 426. Convert Binary Search Tree to Sorted Doubly Linked ListEnglish中文Youtube中文b站
LeetCode 489. Robot Room CleanerEnglish中文Youtube中文b站
LeetCode 560. Subarray Sum Equals KEnglish中文Youtube中文b站
LeetCode 680. Valid Palindrome IIEnglish中文Youtube中文b站
LeetCode 710. Random Pick with BlacklistEnglish中文Youtube中文b站
LeetCode 721. Accounts MergeEnglish中文Youtube中文b站
LeetCode 863. All Nodes Distance K in Binary TreeEnglish中文Youtube中文b站
LeetCode 918. Maximum Sum Circular SubarrayEnglish中文Youtube中文b站
LeetCode 953. Verifying an Alien DictionaryEnglish中文Youtube中文b站
LeetCode 973. K Closest Points to OriginEnglish中文Youtube中文b站
LeetCode 1249. Minimum Remove to Make Valid ParenthesesEnglish中文Youtube中文b站
LeetCode 1428. Leftmost Column with at Least a OneEnglish中文Youtube中文b站
LeetCode 1570. Dot Product of Two Sparse VectorsEnglish中文Youtube中文b站
LeetCode 1644. Lowest Common Ancestor of a Binary Tree IIEnglish中文Youtube中文b站
LeetCode 1650. Lowest Common Ancestor of a Binary Tree IIIEnglish中文Youtube中文b站
LeetCode 1676. Lowest Common Ancestor of a Binary Tree IVEnglish中文Youtube中文b站
LeetCode 1727. Largest Submatrix With RearrangementsEnglish中文Youtube中文b站
LeetCode 1751. Maximum Number of Events That Can Be Attended IIEnglish中文Youtube中文b站
LeetCode 1754. Largest Merge Of Two StringsEnglish中文Youtube中文b站
LeetCode 1755. Closest Subsequence SumEnglish中文Youtube中文b站
LeetCode 1760. Minimum Limit of Balls in a BagEnglish中文Youtube中文b站
LeetCode 1761. Minimum Degree of a Connected Trio in a GraphEnglish中文Youtube中文b站
LeetCode 1764. Form Array by Concatenating Subarrays of Another ArrayEnglish中文Youtube中文b站
LeetCode 1765. Map of Highest PeakEnglish中文Youtube中文b站
LeetCode 1766. Tree of CoprimesEnglish中文Youtube中文b站
LeetCode 1770. Maximum Score from Performing Multiplication OperationsEnglish中文Youtube中文b站
LeetCode 1771. Maximize Palindrome Length From SubsequencesEnglish中文Youtube中文b站
LeetCode 1774. Closest Dessert CostEnglish中文Youtube中文b站
LeetCode 1775. Equal Sum Arrays With Minimum Number of OperationsEnglish中文Youtube中文b站
LeetCode 1776. Car Fleet IIEnglish中文Youtube中文b站
LeetCode 1778. Shortest Path in a Hidden GridEnglish中文Youtube中文b站
LeetCode 1779. Find Nearest Point That Has the Same X or Y CoordinateEnglish中文Youtube中文b站
LeetCode 1780. Check if Number is a Sum of Powers of ThreeEnglish中文Youtube中文b站
LeetCode 1781. Sum of Beauty of All SubstringsEnglish中文Youtube中文b站
LeetCode 1782. Count Pairs Of NodesEnglish中文Youtube中文b站
LeetCode 1784. Check if Binary String Has at Most One Segment of OnesEnglish中文Youtube中文b站
LeetCode 1785. Minimum Elements to Add to Form a Given SumEnglish中文Youtube中文b站
LeetCode 1786. Number of Restricted Paths From First to Last NodeEnglish中文Youtube中文b站
LeetCode 1787. Make the XOR of All Segments Equal to ZeroEnglish中文Youtube中文b站
LeetCode 1788. Maximize the Beauty of the GardenEnglish中文Youtube中文b站
LeetCode 1790. Check if One String Swap Can Make Strings EqualEnglish中文Youtube中文b站
LeetCode 1791. Find Center of Star GraphEnglish中文Youtube中文b站
LeetCode 1792. Maximum Average Pass RatioEnglish中文Youtube中文b站
LeetCode 1793. Maximum Score of a Good SubarrayEnglish中文Youtube中文b站
LeetCode 1794. Count Pairs of Equal Substrings With Minimum DifferenceEnglish中文Youtube中文b站
LeetCode 1796. Second Largest Digit in a StringEnglish中文Youtube中文b站
LeetCode 1797. Design Authentication ManagerEnglish中文Youtube中文b站
LeetCode 1798. Maximum Number of Consecutive Values You Can MakeEnglish中文Youtube中文b站
LeetCode 1799. Maximize Score After N OperationsEnglish中文Youtube中文b站
LeetCode 1800. Maximum Ascending Subarray SumEnglish中文Youtube中文b站
LeetCode 1801. Number of Orders in the BacklogEnglish中文Youtube中文b站
LeetCode 1802. Maximum Value at a Given Index in a Bounded ArrayEnglish中文Youtube中文b站
LeetCode 1803. Count Pairs With XOR in a RangeEnglish中文Youtube中文b站
LeetCode 1804. Implement Trie II (Prefix Tree)English中文Youtube中文b站
LeetCode 1805. Number of Different Integers in a StringEnglish中文Youtube中文b站
LeetCode 1807. Evaluate the Bracket Pairs of a StringEnglish中文Youtube中文b站
LeetCode 1808. Maximize Number of Nice DivisorsEnglish中文Youtube中文b站
LeetCode 1810. Minimum Path Cost in a Hidden GridEnglish中文Youtube中文b站
LeetCode 1812. Determine Color of a Chessboard SquareEnglish中文Youtube中文b站
LeetCode 1813. Sentence Similarity IIIEnglish中文Youtube中文b站
LeetCode 1814. Count Nice Pairs in an ArrayEnglish中文Youtube中文b站
LeetCode 1815. Maximum Number of Groups Getting Fresh DonutsEnglish中文Youtube中文b站
LeetCode 1816. Truncate SentenceEnglish中文Youtube中文b站
LeetCode 1817. Finding the Users Active MinutesEnglish中文Youtube中文b站
LeetCode 1818. Minimum Absolute Sum DifferenceEnglish中文Youtube中文b站
LeetCode 1819. Number of Different Subsequences GCDsEnglish中文Youtube中文b站
LeetCode 1820. Maximum Number of Accepted InvitationsEnglish中文Youtube中文b站
LeetCode 1822. Sign of the Product of an ArrayEnglish中文Youtube中文b站
LeetCode 1824. Minimum Sideway JumpsEnglish中文Youtube中文b站
LeetCode 1825. Finding MK AverageEnglish中文Youtube中文b站
LeetCode 1826. Faulty SensorEnglish中文Youtube中文b站
LeetCode 1827. Minimum Operations to Make the Array IncreasingEnglish中文Youtube中文b站
LeetCode 1828. Queries on Number of Points Inside a CircleEnglish中文Youtube中文b站
LeetCode 1829. Maximum XOR for Each QueryEnglish中文Youtube中文b站
LeetCode 1830. Minimum Number of Operations to Make String SortedEnglish中文Youtube中文b站
LeetCode 1832. Check if the Sentence Is PangramEnglish中文Youtube中文b站
LeetCode 1833. Maximum Ice Cream BarsEnglish中文Youtube中文b站
LeetCode 1834. Single-Threaded CPUEnglish中文Youtube中文b站
LeetCode 1835. Find XOR Sum of All Pairs Bitwise ANDEnglish中文Youtube中文b站
LeetCode 1836. Remove Duplicates From an Unsorted Linked ListEnglish中文Youtube中文b站
LeetCode 1837. Sum of Digits in Base KEnglish中文Youtube中文b站
LeetCode 1839. Longest Substring Of All Vowels in OrderEnglish中文Youtube中文b站
LeetCode 1840. Maximum Building HeightEnglish中文Youtube中文b站
LeetCode 1847. Closest RoomEnglish中文Youtube中文b站
LeetCode 1850. Minimum Adjacent Swaps to Reach the Kth Smallest NumberEnglish中文Youtube中文b站
LeetCode 1851. Minimum Interval to Include Each QueryEnglish中文Youtube中文b站

About

LeetCode solutions.

Topics

Resources

Stars

161 stars

Watchers

10 watching

Forks

Releases

Packages

Used by

Contributors

Languages