随笔分类 -  其它:排序

摘要:基本思想 建立在归并操作上的一种有效的排序算法。该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。 算法原理 归并操作指的是将两个已经排序的序列合并成一个序列的操作,归并操作步骤如下: 申请空间,使其大小为两个已经排序序列之和,该空间用来存放合并后的序列 设定两个指针, 阅读全文
posted @ 2019-01-17 16:05 DWVictor 阅读(997) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/338/D来源:牛客网 题目描述 As everyone knows, there are now n people participating in the competition. It was finally lun 阅读全文
posted @ 2019-01-06 19:28 DWVictor 阅读(268) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/338/H来源:牛客网 题目描述 Kuangyeye is a dalao of the ACM school team of Hunan University. His favorite food are hamburg 阅读全文
posted @ 2019-01-06 19:02 DWVictor 阅读(521) 评论(0) 推荐(0)