leetcode README

The project's README from github.com/haoel/leetcode. As one markdown file: README.md.

LeetCode

LeetCode Algorithm

(Notes: "🔒" means you need to buy a book from Leetcode)

# Title Solution Difficulty
1946 Largest Number After Mutating Substring C++, Java Medium
1945 Sum of Digits of String After Convert C++ Easy
1935 Maximum Number of Words You Can Type C++ Easy
1884 Egg Drop With 2 Eggs and N Floors C++ Medium
1882 Process Tasks Using Servers C++ Medium
1881 Maximum Value after Insertion C++ Medium
1880 Check if Word Equals Summation of Two Words C++ Easy
1877 Minimize Maximum Pair Sum in Array C++ Medium
1876 Substrings of Size Three with Distinct Characters C++ Easy
1871 Jump Game VII C++ Medium
1870 Minimum Speed to Arrive on Time C++ Medium
1869 Longer Contiguous Segments of Ones than Zeros C++ Easy
1862 Sum of Floored Pairs C++ Hard
1861 Rotating the Box C++ Medium
1860 Incremental Memory Leak C++ Medium
1859 Sorting the Sentence C++ Easy
1857 Largest Color Value in a Directed Graph C++ Hard
1856 Maximum Subarray Min-Product C++ Medium
1855 Maximum Distance Between a Pair of Values C++ Medium
1854 Maximum Population Year C++ Easy
1851 Minimum Interval to Include Each Query C++ Hard
1850 Minimum Adjacent Swaps to Reach the Kth Smallest Number C++ Medium
1849 Splitting a String Into Descending Consecutive Values C++ Medium
1848 Minimum Distance to the Target Element C++ Easy
1847 Closest Room C++ Hard
1846 Maximum Element After Decreasing and Rearranging C++ Medium
1845 Seat Reservation Manager C++ Medium
1844 Replace All Digits with Characters C++ Easy
1840 Maximum Building Height C++ Hard
1839 Longest Substring Of All Vowels in Order C++ Medium
1838 Frequency of the Most Frequent Element C++ Medium
1837 Sum of Digits in Base K C++ Easy
1835 Find XOR Sum of All Pairs Bitwise AND C++ Hard
1834 Single-Threaded CPU C++ Medium
1833 Maximum Ice Cream Bars C++ Medium
1832 Check if the Sentence Is Pangram C++ Easy
1829 Maximum XOR for Each Query C++ Medium
1828 Queries on Number of Points Inside a Circle C++ Medium
1827 Minimum Operations to Make the Array Increasing C++ Easy
1825 Finding MK Average C++ Hard
1824 Minimum Sideway Jumps C++ Medium
1823 Find the Winner of the Circular Game C++ Medium
1822 Sign of the Product of an Array C++ Easy
1819 Number of Different Subsequences GCDs C++ Hard
1818 Minimum Absolute Sum Difference C++ Medium
1817 Finding the Users Active Minutes C++ Medium
1816 Truncate Sentence C++ Easy
1815 Maximum Number of Groups Getting Fresh Donuts C++ Hard
1814 Count Nice Pairs in an Array C++ Medium
1813 Sentence Similarity III C++ Medium
1812 Determine Color of a Chessboard Square C++ Easy
1808 Maximize Number of Nice Divisors C++ Hard
1807 Evaluate the Bracket Pairs of a String C++ Medium
1806 Minimum Number of Operations to Reinitialize a Permutation C++ Medium
1805 Number of Different Integers in a String C++ Easy
1803 Count Pairs With XOR in a Range C++ Hard
1802 Maximum Value at a Given Index in a Bounded Array C++ Medium
1801 Number of Orders in the Backlog C++ Medium
1800 Maximum Ascending Subarray Sum C++ Easy
1799 Maximize Score After N Operations C++ Hard
1798 Maximum Number of Consecutive Values You Can Make C++ Medium
1797 Design Authentication Manager C++ Medium
1796 Second Largest Digit in a String C++ Easy
1793 Maximum Score of a Good Subarray C++ Hard
1792 Maximum Average Pass Ratio C++ Medium
1791 Find Center of Star Graph C++ Medium
1790 Check if One String Swap Can Make Strings Equal C++ Easy
1787 Make the XOR of All Segments Equal to Zero C++ Hard
1786 Number of Restricted Paths From First to Last Node C++ Medium
1785 Minimum Elements to Add to Form a Given Sum C++ Medium
1784 Check if Binary String Has at Most One Segment of Ones C++ Easy
1782 Count Pairs Of Nodes C++ Hard
1781 Sum of Beauty of All Substrings C++ Medium
1780 Check if Number is a Sum of Powers of Three C++ Medium
1779 Find Nearest Point That Has the Same X or Y Coordinate C++ Easy
1775 Equal Sum Arrays With Minimum Number of Operations C++ Medium
1774 Closest Dessert Cost C++ Medium
1773 Count Items Matching a Rule C++ Easy
1771 Maximize Palindrome Length From Subsequences C++ Hard
1770 Maximum Score from Performing Multiplication Operations C++ Medium
1769 Minimum Number of Operations to Move All Balls to Each Box C++ Medium
1768 Merge Strings Alternately C++ Easy
1766 Tree of Coprimes C++ Hard
1765 Map of Highest Peak C++ Medium
1764 Form Array by Concatenating Subarrays of Another Array C++ Medium
1763 Longest Nice Substring C++ Easy
1761 Minimum Degree of a Connected Trio in a Graph C++ Hard
1760 Minimum Limit of Balls in a Bag C++ Medium
1759 Count Number of Homogenous Substrings C++ Medium
1758 Minimum Changes To Make Alternating Binary String C++ Easy
1755 Closest Subsequence Sum C++ Hard
1754 Largest Merge Of Two Strings C++ Medium
1753 Maximum Score From Removing Stones C++ Medium
1752 Check if Array Is Sorted and Rotated C++ Easy
1751 [Maximum Number of Events That Can Be Attended

leetcode (haoel/leetcode)

Searching Database…

18.1K ·GitHub
这是什么?大量 LeetCode 算法题的题解合集,大部分用 C++ 编写,README 充当所有已覆盖题目的索引表。
这是一个需要安装的应用,还是只是用来阅读和学习的代码?这里没有任何东西可以作为应用运行——它是一组按题号组织的独立题解源码文件,README 就是目录。
准备面试时我该怎么用它?不需要安装:克隆仓库,在 README 的编号表格里找到题目,打开对应的题解文件来阅读或编译。
运行这些题解需要什么特殊工具吗?想在本地使用只需要 Git;运行代码需要一个 C++ 编译器,对于同时提供 Java 版本的题目还需要 JDK。
它覆盖了所有 LeetCode 题目吗?没有——索引只到第 #1946 题为止,更新的题目都没有收录;标记为 '🔒' 的条目是锁定内容,按照 README 的说法,需要购买 LeetCode 的书才能解锁。
这些题解是用哪些语言写的?大部分是 C++,其中一部分题目还有 Java 版本——表格里的 Solution 列清楚显示了每道题有哪些语言的版本。
这个合集还在更新吗?它始于 2014 年,目前索引最多到第 #1946 题,所以 LeetCode 最新的题目还没有收录。
这些题解是真实代码还是伪代码?是 C++ 和 Java 的真实源码文件——每道题对应一份实现,可以逐个阅读或编译,不是伪代码草稿。
Creator
haoel
Size
3.1 MB
Stars
18.1K
Updated
CommitApr 09
Age
11y
Commits · 90 Days