1. 首先考虑排序后交替插入 首尾交替插入,这种方法对于有重复数字的数组不可行; class Solution { public: void wiggleSort(vector<int>& nums) { //因为一定存在最优解...