0526. Beautiful Arrangement
Description
**Input:** n = 2
**Output:** 2
**Explanation:**
The first beautiful arrangement is [1,2]:
- perm[1] = 1 is divisible by i = 1
- perm[2] = 2 is divisible by i = 2
The second beautiful arrangement is [2,1]:
- perm[1] = 2 is divisible by i = 1
- i = 2 is divisible by perm[2] = 1**Input:** n = 1
**Output:** 1ac
Last updated