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)

exercises
Searching Database…

18.1K ·GitHub
What is this?A large collection of solutions to LeetCode algorithm problems, written mostly in C++, where the README works as an index table of every covered problem.
Is this an app I install, or just code to read and study?Nothing here runs as an app — it is a set of standalone solution source files organized by problem number, with the README as the table of contents.
How do I use it when preparing for interviews?There is no install step: clone the repo, find a problem in the README's numbered table and open the linked solution file to read or compile it.
Do I need any special tools to run the solutions?Just Git if you want it locally; executing the code takes a C++ compiler, and a JDK for the problems that also have a Java version.
Does it cover every LeetCode problem?No — the index stops at problem #1946, so newer problems are missing, and entries marked '🔒' are locked content that, per the README, requires buying a book from LeetCode.
Which languages are the solutions written in?Mostly C++, with Java versions for a subset of problems — the Solution column in the table shows exactly which languages exist for each one.
Is the collection still growing?It started in 2014 and the index currently tops out at problem #1946, so the newest LeetCode problems are not in it yet.
Are the solutions real code or pseudocode?Real source files in C++ and Java — one implementation per problem that you read or compile individually, not pseudocode sketches.
Creator
haoel
Size
3.1 MB
Stars
18.1K
Updated
CommitApr 09
Age
11y
Commits · 90 Days