Available question text
Given an integer array, partition its elements into the minimum number of rows so that each row contains only distinct values; return any valid 2D arrangement. Key insight: the minimum number of rows equals the maximum frequency of any value, and you must distribute each value's occurrences across those rows.
Related questions
Continue with questions that share topics or the same question type.
- Convert 1D Array Into 2D Array
Coding
- Convert Doubly Linked List to Array I
Coding
- Convert Doubly Linked List to Array II
Coding
- Convert Sampled Call Stacks into Start and End Events
Coding · Arrays & Strings · Stacks & Queues
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2610. Convert an Array Into a 2D Array With Conditions
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source