Apr 20, 2026
Given a positive integer n, you can add or subtract any power of 2 in one operation. Return the minimum number of operations to reduce n to 0.
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 in it appears the same number of times. Answer modulo...
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 return its area.
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, return the researcher’s h-index.
leetcodemediumsorting
Apr 16, 2026
Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to position right...
leetcodemediumlinked-list
Apr 15, 2026
You are given two linked lists: list1 and list2 of sizes n and m respectively. Remove list1’s nodes from the a-th node to the b-th node (0-indexed), and put list2...
leetcodemediumlinked-list
Apr 13, 2026
You are given an array of events where events[i] = [startDay, endDay]. You can attend an event on any single day in the range [startDay, endDay]. You can only attend...
leetcodemediumgreedyheap
Apr 12, 2026
Given an integer n, return a list of all possible full binary trees with n nodes. Each node has value 0. A full binary tree is a tree where every...
leetcodemediumtreerecursionmemoization
Apr 11, 2026
Given an array nums, find two indices i and j (i != j) such that the digit sum of nums[i] equals the digit sum of nums[j], and return the maximum...
leetcodemediumhash-maparray