Oct 20, 2025
Given two sparse vectors, compute their dot product.
leetcodealgorithmmediumcpphash-mapdata-structureoptimizationproblem-solving
Oct 20, 2025
You are given two integer arrays nums1 and nums2. You are tasked to implement a data structure that supports the following operations:
leetcodealgorithmmediumcpphash-mapdata-structureproblem-solving
Oct 20, 2025
Given the root of a binary tree and an integer targetSum, return the number of paths where the sum of the values along the path equals targetSum.
leetcodealgorithmmediumcpptreedfsrecursionproblem-solving
Oct 20, 2025
Given an encoded string, return its decoded string.
leetcodealgorithmmediumcppstackstring-processingproblem-solving
Oct 19, 2025
There is an m x n rectangular island that borders both the Pacific Ocean and the Atlantic Ocean. The Pacific Ocean touches the island’s left and top edges, and the...
leetcodealgorithmmediumcppdfsbfsgraphproblem-solving
Oct 19, 2025
You are given an array of people, people, which are the attributes of some people in a queue (not necessarily in order). Each people[i] = [hi, ki] represents the ith...
leetcodealgorithmmediumcppgreedysortinglistproblem-solving
Oct 18, 2025
The minimum product of a subarray is the minimum value in the subarray multiplied by the sum of the subarray.
leetcodealgorithmmediumcppstackmonotonic-stackprefix-sumproblem-solving
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