Problem Brief
Arrange Coins π
INTERNOA
Given an array of integers coins, where each element represents the number of coins. For each number of coins, output the maximum number of rows that can be stacked, with the stacking rule being: the first row contains one coin, the second row contains two coins, and so on.
1Example 1
Input
coins = [3, 4, 6]
Output
[2, 2, 3]
Explanation
No explanation for now..