Tag: math
Given a list of integers nums, consider every contiguous sublist. Sum each of these sublists and return the sum of all these values. Mod the result by 10 ** …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given two integers n and k, return all possible combinations of k numbers out of 1 … n. You may …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequence is a sequence that …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return the least number of perfect square numbers that sum to n. A perfect square is …
Given an integer n, find two or more integers such that their sum is equal to n, where the product of these integers is maximized, and return this product. …