InterviewDigestInterviewDigest

OA Practice Workspace

Online Assessment Test2026-08-12

Maximize Greatness of an Array

AI-Expanded — inferred from the question title, not from the original candidate report

Given an integer array, you are tasked with permuting its elements to create a new array such that the number of indices where the new element is strictly greater than the original element is maximized. Return the maximum possible count of such indices that can be achieved by reordering the input array.

Context & Summary

Offline proctored assessment conducted in college labs. Evaluated aptitude, data structures, algorithms, and operating systems knowledge through MCQs and coding problems.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.