-->
当前位置:首页 > 搜索 "程序填空题"

程序填空题:并-查运算

Luz5年前 (2021-05-10)1155
本题要求给出下列并查集操作执行后,集合数组内存储的结果。```union( find(4), find(6) )union( find(2), find(7) )union( find(0), find(4) )union( find(7)…

程序填空题:Modified Selection Sort [1]

Luz5年前 (2021-05-10)967
The function is to sort the list { `r[1] … r[n]` } in non-decreasing order. Unlike selection sort which places only the……

程序填空题:Modified Selection Sort [2]

Luz5年前 (2021-05-10)890
The function is to sort the list { `r[1] … r[n]` } in non-increasing order. Unlike selection sort which places only the……

程序填空题:Modified Selection Sort [3]

Luz5年前 (2021-05-10)858
The function is to sort the list { `r[0] … r[n-1]` } in non-increasing order. Unlike selection sort which places only t……

程序填空题:Balanced Tree [1]

Luz5年前 (2021-05-10)728
A binary tree is said to be "height balanced" if both its left and right subtrees are height balanced, and the heights o…

程序填空题:Balanced Tree [3]

Luz5年前 (2021-05-10)638
A binary tree is said to be "height balanced" if both its left and right subtrees are height balanced, and the heights o…

程序填空题:Balanced Tree [2]

Luz5年前 (2021-05-10)689
A binary tree is said to be "height balanced" if both its left and right subtrees are height balanced, and the heights o…

程序填空题:奇数序列和

Luz5年前 (2021-05-10)2417
计算1+3+5+7+ …… +N的值,N为奇数,且 1˂=N˂=10001。```c++#include int main(){ int N; int sum; int step; int number; sc……

程序填空题:净化字符串

Luz5年前 (2021-05-10)3168
输入一个字符串(长度不超过100), 去掉其中的空格字符,输出净化后的字符串。输入样例:san xiao lian kao输出样例:sanxiaoliankao请补充完成下面的程序。```c++#include #define MAX_LE…

程序填空题:成绩统计

Luz5年前 (2021-05-10)5593
输入一个考试成绩的序列,以-1为结束标记。成绩均为整数,且在0到100之间。序列长度在1到1000之间。计算并输出最高、最低和平均成绩。输入举例:10 20 30 40 50 -1输出举例:50 10 30.00```c++#include…

程序填空题:考试成绩

Luz5年前 (2021-05-10)3881
班长用QQ给各位同学发送考试分数(0到100之间的整数)。发送的信息包括三行字符串,第一行的字符串的长度-1是分数的百位数字,第二行的字符串的长度-1是分数的十位数字,第三行的字符串的长度-1是分数的个位数字。可是,小明只想知道自己的成绩等…

程序填空题:RL Rotation

Luz5年前 (2021-05-10)1340
The function `RL_Rotation` is to do right-left rotation to the trouble-finder tree node `T` in an AVL tree. ```c++typede…

程序填空题:LR Rotation

Luz5年前 (2021-05-10)804
The function `LR_Rotation` is to do left-right rotation to the trouble-finder tree node `T` in an AVL tree. ```c++typede…

程序填空题:Right-left Rotation

Luz5年前 (2021-05-10)968
The function `RL_Rotation` is to do right-left rotation to the trouble-finder tree node `T` in an AVL tree. ```c++typede…

程序填空题:Left-right Rotation

Luz5年前 (2021-05-10)1254
The function `LR_Rotation` is to do left-right rotation to the trouble-finder tree node `T` in an AVL tree. ```c++typede…

程序填空题:LL Rotation

Luz5年前 (2021-05-10)1202
The function `LL_Rotation` is to do right-left rotation to the trouble-finder tree node `T` in an AVL tree. ```c++typede…

程序填空题:RR Rotation

Luz5年前 (2021-05-10)1691
The function `RR_Rotation` is to do right-right rotation to the trouble-finder tree node `T` in an AVL tree. ```c++typed…

程序填空题:fibonacci数列

Luz5年前 (2021-05-10)2582
用数组来求fibonacci数列问题,打印前20项数列,每行打印4个数。```c++#includeint main(){ int i; int f[20]={1,1}; for (i=2;i˂20;i++) f[i]=@@[f……

程序填空题:BinQueue_Merge [1]

Luz5年前 (2021-05-10)938
The function `BinQueue_Merge` is to merge two binomial queues `H1` and `H2`, and return `H1` as the resulting queue. ``……

程序填空题:CAT's Copy

Luz5年前 (2021-05-10)4752
阅读下面的程序,完成其中复制构造函数的代码。```C++#include using namespace std;class CAT{ public: CAT(); CAT(const CAT……