# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 将给定数组排序 # @param arr int整型一维数组 待排序的数组 # @return int整型一维数组 题解 : https://leetcode.cn/discuss/post/3690844/0x11-pai-xu-by-zengjx-mqc4/ # class Solution: def partition(self,arr,left,right): i,j=left,right while i<j: # 从右到左找第一个小于哨兵的元素 while i<j and arr[l...