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
Oct 6, 2025
Given an array of integers nums, sort the array in ascending order and return it.
leetcodealgorithmmediumcppsortingmerge-sortheap-sortcounting-sortdata-structuresdivide-conquerproblem-solving
Oct 5, 2025
A city’s skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Given the locations and heights of all...
leetcodealgorithmhardcppsweep-linepriority-queuedata-structuresunion-findproblem-solving
Oct 4, 2025
You are given an array of strings equations that represent relationships between variables. Each string equations[i] is of length 4 and takes one of two different forms: "xi==yi" or "xi!=yi"....
leetcodealgorithmdata-structuresdisjoint-setgraphdfsmediumcppconnected-componentsgraph-coloringproblem-solving