2017 2018 1 20162306 实验四 实验报告 实验三:查找与排序 1 实验要求: 完成教材P302 Searching.Java ,P305 Sorting.java中方法的测试 不少于10个测试用例,提交测试用例设计情况(正常,异常,边界,正序,逆序),用例数据中要包含自己学号的后四 ...
分类:
其他好文 时间:
2017-11-27 00:02:46
阅读次数:
120
题目 题目描述 给N个整数,每个整数只能是1,2,或3。现在需要对这个整数序列进行从小到大排序,问最少需要进行几次交换。`N(1 include using namespace std; int N; int num[1010]; int main() { ifdef MARK freopen("s ...
分类:
其他好文 时间:
2017-11-26 16:46:20
阅读次数:
132
``` /* * objectSort.java * demonstrate sorting objects (use insertion sort) */ public class Person { private String firstname; private String lastname... ...
分类:
编程语言 时间:
2017-11-21 10:47:26
阅读次数:
151
An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to large ...
分类:
其他好文 时间:
2017-11-21 01:03:32
阅读次数:
138
排序与搜索 排序算法(英语:Sorting algorithm)是一种能将一串数据依照特定顺序进行排列的一种算法。 1.冒泡排序 冒泡排序(英语:Bubble Sort)是一种简单的排序算法。它重复地遍历要排序的数列,一次比较两个元素,如果他们的顺序错误就把他们交换过来。遍历数列的工作是重复地进行直 ...
分类:
编程语言 时间:
2017-11-19 19:49:21
阅读次数:
195
题目描述: On his trip to Luxor and Aswan, Sagheer went to a Nubian market to buy some souvenirs for his friends and relatives. The market has some strange ...
分类:
其他好文 时间:
2017-11-16 11:51:18
阅读次数:
171
原文: https://blogs.msdn.microsoft.com/shawnhar/2009/02/18/depth-sorting-alpha-blended-objects/ 翻译:李现民 最后修改:2012-07-03 “为什么我的透明物体的绘制顺序是错误的,或者为什么它们的一部分不见 ...
分类:
编程语言 时间:
2017-11-14 14:32:35
阅读次数:
168
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a min ...
分类:
其他好文 时间:
2017-11-12 12:37:38
阅读次数:
164
给一个序列,每次操作对这个序列中的所有数异或一个x,问每次操作完以后整个序列的mex值。 做法是去重后构建01字典树,异或x就是对root加一个x的lazy标志,每次pushDown时如果lazy的这一位是1,则交换左右儿子。找mex的话只要每次往左走,如果左子树是满的,则往右走,并且加上左边相应造 ...
分类:
其他好文 时间:
2017-11-11 18:53:36
阅读次数:
225
Given an directed graph, a topological order of the graph nodes is defined as follow: For each directed edge A -> B in graph, A must before B in the o ...
分类:
其他好文 时间:
2017-11-07 14:25:59
阅读次数:
168