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

程序填空题:python正则表达式-规律

Luz4年前 (2021-05-10)646
找出下列数据的规律,然后进行匹配。。需要匹配的*abc01*ddd02*afcf01*acac11*321*acef33*bbc000不能匹配的*ABCDEFG789654*CODEJIAONANG*ghjkloiqwt......

程序填空题:一年的第几天

Luz4年前 (2021-05-10)480
输入某年某月某日,判断这一天是这一年的第几天?```c++#includeintmain(){intyear,month,day;intsum;intleap;intT;scanf("%d......

程序填空题:最小生成树(普里姆算法)

Luz4年前 (2021-05-10)1097
最小生成树(普里姆算法)。```c++#include#defineMVNum100#defineMaxInt32767usingnamespacestd;structedge{charadjvex;intlowc......

程序填空题:The Turnpike Reconstruction Problem

Luz4年前 (2021-05-10)476
Supposewearegiven$n$points$p_1,p_2,...p_n$locatedonthe$x$-axis.$x_i$isthe$x$-coordinateof$p_i$.Let......

程序填空题:Sum of N-Narcissistic Number

Luz4年前 (2021-05-10)374
An$n$-digitnumberthatisthesumofthe$n$-thpowersofitsdigitsiscalledan$n$-narcissisticnumber.Forexample......

程序填空题:B+ Tree - Find Key

Luz4年前 (2021-05-10)572
Thefunction`FindKey`istocheckifagiven`key`isinaB+Treewithitsrootpointedby`root`.Return`true`if`k......

程序填空题:Width of a Binary Tree

Luz4年前 (2021-05-10)667
Thefunctionistofindthewidthofabinarytree`T`.Thewidthofabinarytreeisthemaximumnumberofnodesonon......

程序填空题:Topological Sort

Luz4年前 (2021-05-10)804
Thefunctionistodotopologicalsortonagraph`G`.`TopNum[]`startscountingfrom1.```c++voidTopsort(GraphG){......

程序填空题:Percolate Down

Luz4年前 (2021-05-10)980
Pleasefillintheblanksintheprogramwhichpercolatesdownfromposition`p`inamax-heap`H`.```c++voidPercolateD......

程序填空题:Bubble Sort

Luz4年前 (2021-05-10)2080
Bubblesortisasimplesortingalgorithm.Supposewehavealistofintegersandwanttosorttheminascendingorder.......

程序填空题:DecreaseKey

Luz4年前 (2021-05-10)953
Thefunctionistolowerthevalueoftheintegerkeyatposition`P`byapositiveamount`D`inamin-heap`H`.```c++v......

程序填空题:Hash Insertion

Luz4年前 (2021-05-10)1133
Thefunctionistoinsertanitemintothehashtable`ht[]`withthehashfunction`hash`.Herea`list`nodecontains......

程序填空题:Find

Luz4年前 (2021-05-10)1670
Pleasefillintheblanksintheprogramwhichperforms`Find`asaUnion/Findoperationwithpathcompression.```c++Set......

程序填空题:Heap Sort

Luz4年前 (2021-05-10)1565
Thefunctionistosort`N`elementsinnon-decreasingorderbyheapsort.```c++#defineleftchild(i)(2*(i)+1)voidPer......

程序填空题:Level Order Traversal

Luz4年前 (2021-05-10)1282
Thefunctionistolistoutthenodesofabinarytree`T`in"level-order".```c++typedefstructTreeNode*Tree;structT......

程序填空题:MinHeap Deletion

Luz4年前 (2021-05-10)625
Pleasefillintheblanksintheprogramwhichdeletesagivenelementatposition`p`fromamin-heap`H`.```c++Deletio......

程序填空题:Modified Selection Sort

Luz4年前 (2021-05-10)643
Thefunctionistosortthelist{`r[1]…r[n]`}innon-decreasingorder.Unlikeselectionsortwhichplacesonlythe......

程序填空题:小顶堆键值下调

Luz4年前 (2021-05-10)2289
下列代码的功能是将小顶堆`H`中指定位置`P`上的元素的整数键值下调`D`个单位,然后继续将`H`调整为小顶堆。```c++voidDecreaseKey(intP,intD,PriorityQueueH){inti......

程序填空题:集合查找

Luz4年前 (2021-05-10)1174
请填空完成下列代码,功能是实现并查集中的“查”,并且带路径压缩。```c++SetTypeFind(ElementTypeX,DisjSetS){ElementTyperoot,trail,lead;f......

程序填空题:散列插入

Luz4年前 (2021-05-10)3635
下列代码的功能是利用散列函数`hash`将一个元素插入到散列表`ht[]`中。其中`list`类型的结点包含`element`类型的项`item`、以及一个`next`指针。如果插入成功,则函数返回1,否则返回0。```c++intins....