3447. Assign Elements to Groups with Constraints
3447. Assign Elements to Groups with Constraints
Description
You are given an integer array groups
, where groups[i]
represents the size of the i^th
group. You are also given an integer array elements
.