Tag: c++
Given a list of positive integers nums and an integer k, return the number of subsets in the list that sum up to k. Mod the result by 10 …
You are given two lists of integers weights and values which have the same length and an integer capacity. weights and values represent the weight and value of the …
Given a binary tree root, find the sum of the deepest node values. Constraints n ≤ 100,000 where n is the number of nodes in root Hint: You need …
Given a list of integers nums and an integer k, return a list of count of distinct numbers in each window of size k. Constraints 1 ≤ k ≤ …
Given a string s and an integer k, return the number of k-length substrings that occur more than once in s. Constraints n ≤ 100,000 where n is the …