Jun 25, 2026
So you’ve heard about LeetCode but aren’t sure where to start? Or maybe you’ve opened a problem, stared at it...
guideleetcode
Apr 20, 2026
Given a positive integer n, you can add or subtract any power of 2 in one operation. Return the minimum...
leetcodemediumbit-manipulation
Apr 19, 2026
Given a string s, return the number of non-empty good subsequences of s. A subsequence is good if every character...
leetcodehardcombinatorics
Apr 18, 2026
Given an m x n binary matrix filled with '0's and '1's, find the largest square containing only '1's and...
leetcodemediumdynamic-programming
Apr 18, 2026
Given an m x n integers matrix, return the length of the longest strictly increasing path.
leetcodeharddynamic-programmingdfs
Apr 17, 2026
Given an array of integers citations where citations[i] is the number of citations a researcher received for their i-th paper,...
leetcodemediumsorting