โ† Myntra questions

Minimize Distinct Elements via Array Operations

Filed under Myntra

The question

Given an array and number K, select an index to decrement by K while incrementing all other elements any number of times to minimize the number of distinct elements, and find the maximum occurring element at the end.

No write-up yet. Related questions below have one.

Related Myntra questions

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