NeetCode #122LC-280MediumArrays & HashingNC Algo100
← Back to All Problems#122 · #280 · Wiggle Sort(摆动排序)
📌 Problem Statement & Constraints
Given an unsorted array
nums, reorder it in place so that nums[0] <= nums[1] >= nums[2] <= nums[3] >= .... Constraints: 1 <= nums.length <= 5 * 10^4, 0 <= nums[i] <= 10^4.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!