搜索资源列表
test
- 两个长度不定的升序链表,两个链表中数据有可能重复,先找到混合的第n个数然后输出后续m个 (可重复),时间复杂度为n。 -Two variable-length list in ascending order, the two data are likely to repeat the list, first find the number of mixed and then output the first follow-up n
3
- 自行输入n个数,然后将后n个数中的后m个数换到前m个。-Enter their own number n, then the number of post-post-n m m a number of change to the front.
curvefitting
- 利用最小二乘法计算N个数据点的拟合多项式。-calulating the fitting polynomial of n grid data using the least Square Method
Chapter6
- 2.编程计算前n个数的阶乘和,要求采用递归算法 的公式如下: -calculator n!
clu
- 一维聚类分析,实现将n个数按规则分成k类,并给出每类的中心-One-dimensional cluster analysis, to achieve the n numbers into k classes according to the rules and give the center of each class
6
- 设计程序利用分治策略求n个数的最大值和最小值。-Divide and conquer strategy design process using the number n find the maximum and minimum.
kmeans
- 用k均值聚类实现随机n个数分类到k类中。 k和n是可变的。用图形化显示聚类结果。 需要把两个文件放在同一目录下,运行wkmeans2D即可。-k-means
1038
- 输入数(整数或实数)的个数,再输入n个数,求它们的和.当输入的数的个数为0时终止程序.-The input consists of one or more test cases. The first line of each test case is an integer N(N>0), indicating the amount of numbers you will add up to. The next N lines ea
k-means
- 用于实现二维点的k均值分类的功能。输入n个数以及要求分成的类别数,将输出最终的分类结果,并且得到代价。-Used to implement k-means classification of two-dimensional point of the function. N number of input and request the number of categories into the output end of the cla
k
- 给定一组数组,数组元素个数为n,求这n个数中第k小的数。-Given a set of arrays, the number of array elements is n, find the number of the first k n a small number.
max--min-
- 给定一个数组,数组的个数为n,求这n个数的最大值、最小值-Given an array of the number of the n, n find the number of maximum, minimum
123456
- 设有n个正整数,将他们连接成一排,组成一个最大的多位整数。例如:n=3时,3个整数13,312,343,连成的最大整数为:34331213。又如:n=4时,4个整数7,13,4,246连接成的最大整数为7424613。 有多组输入,每组数据格式如下: 第一行,一个数n,(1<=n<=20)表示有n 个数要连接; 第二行,n个数。 与输入对应,有多组输出,每组仅有一行,连接成的多位数 输入样例]
splay-tree
- 划分树logn 给你n个数 然后让你query从ll到rr中排第k的数-N logn to you by the number of trees and then let you query from ll to rr in the number of rank k
Stones-merger
- 在一个圆形操场的四周摆放着n 堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的2 堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。 试设计一个算法,计算出将n堆石子合并成一堆的最小得分和最大得分。 【输入文件】 包含两行,第1 行是正整数n(1<=n<=100),表示有n堆石子。 第2行有n个数,分别表示每堆石子的个数。 -Around in a circular playgro
josepharray
- 约瑟夫问题,用链式结构实现,有N个数,从S开始报数M,列出前后出序序列-Joseph problems with the chain structure to achieve, there are N number, starting from the S reported that the number M, before and after the order listed in the sequence
JosephLink
- 约瑟夫问题,链表实现。有N个数,从S开始报数m,打印出序序列-Joseph problems linked list. There are N number, starting from the S reported that the number m, print out the order sequence
Bubble-sort-method
- 冒泡法排序:如果有n个数,则要进行n-1趟比较。在第1趟比较中要进行n-1次两两比较,在第j趟比较中要进行n-j次两两比较-Bubble sort method: If you have n numbers, n-1 times will have to be compared. Times in comparison to the first n-1 times for any two, in comparison to the j-
statistical-problem
- Descr iption: 计算机似乎生来就是干苦力的,不是吗?统计就是这种苦力中的一种,而如果你运气不好,刚好碰到有很多重复数据的时候,就更加令人感到乏味。那么,你的任务来了。现在,给你一列数 A1, A2, … An 。然后要你回答,对于给定的区间,里面到底有多少个不重复的数。 Input: 一个整数 T (T <= 10) ,表示有 T 组测试数据。 每组数据第一行是数 N (1 <= N &l
the-n-time-A--plus-B
- Descr iption: 想必大家都做过A+B这道经典的入门题了,这次的A+B问题是基于十六进制数的两个数相加。这16个数字是 0 ~ 9 ,另外用 a 表示数字 10 ,用 b 表示数字 11 ,用 c 表示数字 12 ,用 d 表示数字 13 ,用 e 表示数字 14 ,用 f 表示数字 15 。 Input: 输入包含多组数据,每组数据包含一行两个十六进制整数a和b(0<=a,b<=fffff
qbxf
- 给定N个数据点,求切比雪夫议意义下的最佳拟合多项式-Given N data points, find the Chebyshev sense proposed best-fit polynomial