Subarray Sums Divisible by K (LeetCode 974)
The problem Given an integer array (values may be negative) and an integer…
Tag
14 posts
The problem Given an integer array (values may be negative) and an integer…
The problem You get an integer array (values may be negative) and an integer…
The problem Design a class that receives a stream of non-negative integers…
The problem You are given an integer array that never changes. Build a class…
The problem You are given a matrix of integers that never changes. Build a class…
The problem Given an integer array , return an array where is the product of…
The problem You pick a positive integer , then add the numbers of to it one at…
The problem Given an integer array (values can be negative) and an integer…
The problem Given an integer array , find the pivot index: the leftmost index…
The problem Given an array of non-negative integers and an integer , return if…
The problem Given a binary array (only 0s and 1s), return the length of the…
The problem A car with empty seats drives in one direction. Each trip is : pick…
Ten problems that drill the prefix-sum pattern from Lesson 7. The big idea keeps…
Prefix sums are a quiet superpower: a tiny O(n) precomputation that makes every…