Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Interview Question Cpp - Level Hard#1559

Open
Pranjalmandalia wants to merge 4 commits intothisisshub:masterfrom
Pranjalmandalia:master
Open

Interview Question Cpp - Level Hard#1559
Pranjalmandalia wants to merge 4 commits intothisisshub:masterfrom
Pranjalmandalia:master

Conversation

@Pranjalmandalia
Copy link
Copy Markdown

@Pranjalmandalia Pranjalmandalia commented Oct 2, 2021

Minimum removals are required such that the sum of the remaining array modulo M is X.
Given an array arr[] consisting of N positive integers and the integers X and M, where 0 <= X < M, the task is to find the minimum number of elements required to be removed such that the sum of the remaining array modulo M is equal to X.
Input: arr[] = {3, 2, 1, 2}, M = 4, X = 2
Output: 1
#hacktoberfest2021
#1559

sistaseetaram and others added 4 commits October 2, 2021 12:12
* 'master' of https://github.com/sistaseetaram/HacktoberFest:
  Longest Increasing Subsequence using DP
  mergesort with normal and uniform dataset in c
  first commit
  sine series in c
  Create Page
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants