leetcode526专题

leetcode526 Beautiful Arrangement Java

Description: Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of the following is true for the ith pos