Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Sum Divisible by P #297

Closed
Saumitra11 opened this issue Oct 4, 2024 · 3 comments
Closed

Make Sum Divisible by P #297

Saumitra11 opened this issue Oct 4, 2024 · 3 comments
Assignees
Labels
DSA Hacktoberfest contribute for hacktoberfest 2024

Comments

@Saumitra11
Copy link
Contributor

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?

Copy link

github-actions bot commented Oct 4, 2024

Thank you for raising a issue, Hope you enjoing the open source. we try to reply or assign as soon possibe. Connect with mentor.

@harshitkumargupta
Copy link

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.

@Saloni6111 Saloni6111 added Hacktoberfest contribute for hacktoberfest 2024 DSA labels Oct 4, 2024
@Saumitra11
Copy link
Contributor Author

#301

Hi @Saloni6111 I've raised the PR, could you please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSA Hacktoberfest contribute for hacktoberfest 2024
Projects
None yet
Development

No branches or pull requests

3 participants