โ† Salesforce questions

Remove elements for product congruent to 1 mod n

Filed under Salesforce

Given an array of integers, remove the minimum number of elements such that the product of the remaining elements is congruent to 1 modulo n.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Salesforce questions

Collected from public candidate posts and coding forums. Updated Nov 2026.