← Nvidia questions
CodingReported in a candidate post, Mar 2025

Maximize Greatness of an Array

Filed under Nvidia

Given an array nums, rearrange it to maximize its greatness. Greatness is defined as the number of indices i for which perm[i] > nums[i] after a permutation.

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 Nvidia questions

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