Skip to content

Latest commit

 

History

History
43 lines (23 loc) · 819 Bytes

File metadata and controls

43 lines (23 loc) · 819 Bytes

English Version

题目描述

给你一个无序的数组 nums, 将该数字 原地 重排后使得 nums[0] <= nums[1] >= nums[2] <= nums[3]...

示例:

输入: nums = [3,5,2,1,6,4]
输出: 一个可能的解答是 [3,5,1,6,2,4]

解法

Python3

Java

...