资源列表
1
- 设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列者的下一个人重新开始报数,数到m2(刚出列者所持密码)的人又出列,如此重复进行,直到n个人都出列为止。-something like Joseph problem
lcs
- 一道经典的动态规划题目 浙江大学硕士生入学复试上机题 http://acm.hdu.edu.cn/showproblem.php?pid=1231-Classic dynamic programming http://acm.hdu.edu.cn/showproblem.php?pid=1231
Netherlandsflag
- 荷兰旗问题,数据结构中比较简单的问题,复杂度为O(n)。-Dutch flag issue
001
- 求字符串next数组,实现快速模式匹配,将文件直接在C++环境下执行即可-String array for next, realizing fast pattern matching
Frequency-value
- 频率值。要求输入一个非递减序列,再输入所要查询的区间,然后统计此区间内出现最多的值的次数。-Frequency value. Asked to enter a non-decreasing sequence, and then enter the query interval, then the number of statistics in this range the most value.
main
- 读入一个文本后,统计其中出现的英文字母的频率-Reading a text, the statistics on the frequency of the letters appear
simplecalculator
- there are basic source codes of data structure. these codes will help study data structure. about simple calculator
guibingpaixu
- 基于分治思想的归并排序算法简单实现,使用C++编写.-Based on Divide and Conquer simple implementation of merge sorting algorithm, written using C++.
quicksort
- 该代码是一个快速排序算法的代码,用java编写的,是一个很不错的代码,希望有帮助。-The code is a quick sort algorithm code, written in java, is a very good code, want to help.
11
- 编写递归函数,求n个元素集合的所有子集。不妨令集合元素为小写字母,原集合为{ a , b , …, a + n - 1}。 输入:input.txt,仅包含整数n(1-26)。 输出:若输入合法,输出集合的所有子集;否则输出"WRONG"。子集输出格式为每行一个子集,空集用空行表示,非空集合每个元素间用一个空格间隔,最后一个元素之后不能有空格。-Write a recursive function, an n-element set of all subset of. May wish
TYVJ_P1238_Pascal
- 好东西就要拿出来,TYVJP1238,是forld算法的典型,标准算法是宽搜,这个也很别致的 -Good things will come up, TYVJP1238, is forld algorithm is a typical, standard algorithms are wide search, this is also very chic
homework6_2
- 日历的设置。输入数组,构造年、月、日数据,按最大至最小的次序输出日期。-Calendar settings. Input array, constructed year, month, date data, according to the order of the largest to the smallest output date.