0996. Number of Squareful Arrays
Description
**Input:** nums = [1,17,8]
**Output:** 2
**Explanation:** [1,8,17] and [17,8,1] are the valid permutations.**Input:** nums = [2,2,2]
**Output:** 1ac
Last updated
**Input:** nums = [1,17,8]
**Output:** 2
**Explanation:** [1,8,17] and [17,8,1] are the valid permutations.**Input:** nums = [2,2,2]
**Output:** 1Last updated