You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an array of positive integers nums, remove the smallest subarray (possibly empty) such that the sum of the remaining elements is divisible by p. It is not allowed to remove the whole array.
Return the length of the smallest subarray that you need to remove, or -1 if it's impossible.
A subarray is defined as a contiguous block of elements in the array.
Hello @Saloni6111
I’d like to take on this issue and contribute towards resolving it. Could you please assign it to me? I’ll make sure to keep you updated as I progress.
Given an array of positive integers nums, remove the smallest subarray (possibly empty) such that the sum of the remaining elements is divisible by p. It is not allowed to remove the whole array.
Return the length of the smallest subarray that you need to remove, or -1 if it's impossible.
A subarray is defined as a contiguous block of elements in the array.
Hi @Saloni6111
This is LeetCode Problem 1590 (Problem of the Day for 3/10/24): https://leetcode.com/problems/make-sum-divisible-by-p/description/
Could you please assign this to me?
The text was updated successfully, but these errors were encountered: