Oct 18, 2025
Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicographical order among all...
leetcodealgorithmmediumcppstackmonotonic-stackgreedyproblem-solving
Oct 17, 2025
In English, we have a concept called root, which can be followed by some other word to form another longer word. Let’s call this word successor. For example, when the...
leetcodealgorithmmediumcpptriehash-setstring-processingproblem-solving
Oct 17, 2025
Given an integer array nums, return the length of the longest strictly increasing subsequence.
leetcodealgorithmmediumcppdynamic-programmingdpbinary-searchproblem-solving
Oct 17, 2025
Given a circular integer array nums (i.e., the next element of nums[nums.length - 1] is nums[0]), return the next greater number for every element in nums.
leetcodealgorithmmediumcppmonotonic-stackstackproblem-solving
Oct 17, 2025
You are given an integer array nums.
leetcodealgorithmmediumcppsliding-windowhash-mapproblem-solving
Oct 17, 2025
Given the integers zero, one, low, and high, we can construct a string by starting with an empty string, and then at each step perform either of the following:
leetcodealgorithmmediumcppdynamic-programmingdpproblem-solving
Oct 16, 2025
We are given hours, a list of the number of hours worked per day for a given employee.
leetcodealgorithmmediumcpphash-mapprefix-sumproblem-solving
Oct 15, 2025
You are given an integer array nums and an integer target.
leetcodealgorithmmediumcppdynamic-programmingdpsubset-sumproblem-solving
Oct 10, 2025
Given a string s, find the length of the longest substring without repeating characters.
leetcodealgorithmmediumcppsliding-windowhash-mapstringtwo-pointersproblem-solving
Oct 8, 2025
Write an efficient algorithm that searches for a value target in an m x n integer matrix. This matrix has the following properties:
leetcodealgorithmmediumcppbinary-searchmatrix2d-arraydivide-conquersearchoptimizationproblem-solving