Jan 30, 2026
Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.
leetcodemediumarraybinary-search
Jan 30, 2026
A peak element is an element that is strictly greater than its neighbors.
leetcodemediumarraybinary-search
Jan 30, 2026
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it...
leetcodeeasyarraybinary-search
Jan 29, 2026
Given an array of integers temperatures representing the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the i-th day...
leetcodemediumarraystackmonotonic-stack
Jan 28, 2026
Design a data structure that can query the frequency of a given value in a given subarray.
leetcodemediumarrayhash-mapbinary-searchdesign
Jan 27, 2026
Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].
leetcodemediumarrayprefix-sumtwo-pointers
Jan 27, 2026
You are given an integer n, which indicates that there are n courses labeled from 1 to n. You are also given an array relations where relations[i] = [prevCoursei, nextCoursei],...
leetcodehardgraphtopological-sortdfsdynamic-programming
Jan 26, 2026
Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to target. If there...
leetcodemediumarraysliding-windowbinary-searchprefix-sum
Jan 26, 2026
Given an integer array nums and an integer k, return the length of the shortest non-empty subarray of nums with a sum of at least k. If there is no...
leetcodehardarraysliding-windowdequeprefix-summonotonic-deque
Jan 26, 2026
Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The order of the elements may be changed. Then return the number of...
leetcodeeasyarraytwo-pointers