Assignment-Array Prefix Sum and Related Problems
Assignment-Array Prefix Sum and Related Problems
Practice Easy
Q2. Minimum Value to Get Positive Step by Step Sum
Given an array of integers nums, you start with an initial
positive value startValue.
Practice
Practice
01
Q4. Find the Highest Altitude Easy
There is a biker going on a road trip. The road trip consists
of n + 1 points at different altitudes. The biker starts his
trip on point 0 with altitude equal 0.
Practice
Practice
02
Q7. Apply Operations to Make All Array Elements
Equal to Zero Medium
You are given a 0-indexed integer array nums and a
positive integer k.
You can apply the following operation on the array any
number of times:
Choose any subarray of size k from the array and
decrease all its elements by 1.
Return true if you can make all the array elements equal
to 0, or false otherwise.
Two submatrices (x1, y1, x2, y2) and (x1', y1', x2', y2') are
different if they have some coordinate that is different:
for example, if x1 != x1'.
Practice
03