摘要:
作业帮笔试 leetcode 53 Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest su 阅读全文
作业帮笔试 leetcode 53 Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest su 阅读全文
posted @ 2018-08-20 19:07
nowgood
阅读(896)
评论(0)
推荐(0)
摘要:
快速排序  快排是不稳定的排序算法, 如随机选择 pivot, partition 时相同的大小的值可能互换 快速排序使用分治法(Divide and conquer)策略来把一个序列(list)分为两个子序列(sub-lists)。 步骤为: 从数列中挑出一个元素,称为"基准"(pivot), 阅读全文
快速排序  快排是不稳定的排序算法, 如随机选择 pivot, partition 时相同的大小的值可能互换 快速排序使用分治法(Divide and conquer)策略来把一个序列(list)分为两个子序列(sub-lists)。 步骤为: 从数列中挑出一个元素,称为"基准"(pivot), 阅读全文
posted @ 2018-08-20 18:59
nowgood
阅读(296)
评论(0)
推荐(0)

浙公网安备 33010602011771号