摘要: 基于快排实现,时间复杂度为O(n) ``` public static int quick_move(int[] nums,int left,int right){ int num=nums[left]; //初始值 int count=0; //count等于0表示目前空位置在左边,等于1表示空位 阅读全文
posted @ 2022-04-28 14:38 无极是一种信仰 阅读(41) 评论(0) 推荐(0)