文章
PAT(甲级)2020年春季考试 7-4 Replacement Selection
74ReplacementSelection(30分)Whentheinputismuchtoolargetofitintomemory,wehavetodoexternalsortinginsteadofinternalsorti
PAT(甲级)2020年春季考试 7-2 The Judger
72TheJudger(25分)Agameofnumbershasthefollowingrules:atthebeginning,twodistinctpositiveintegersaregivenbythejudge.Theneac
PAT(甲级)2020年春季考试 7-3 Safari Park
73SafariPark(25分)Asafaripark(野生动物园)hasKspeciesofanimals,andisdividedintoNregions.Themanagershopetospreadtheanimalstoall
PAT(甲级)2020年春季考试 7-1 Prime Day
71PrimeDay(20分)!wbfg.JPG(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/1c250bf01adb971993e54d4e670f647c.png)Theabovepicture
【数学题】卡特兰数及其应用
简介卡塔兰数是组合数学中一个常在各种计数问题中出现的数列。以比利时的数学家欧仁·查理·卡特兰(1814–1894)命名。历史上,清朝数学家明安图(1692年-1763年)在其《割圜密率捷法》中最先发明这种计数方式,远远早于卡塔兰。有中国学者建议将此数命名为“明安图数”或“明安图卡塔兰
PAT(甲级)2019年秋季考试 7-4 Dijkstra Sequence
74DijkstraSequence(30分)Dijkstra&39;salgorithmisoneoftheveryfamousgreedyalgorithms.Itisusedforsolvingthesinglesourceshorte
PAT(甲级)2019年秋季考试 7-3 Postfix Expression
73PostfixExpression(25分)Givenasyntaxtree(binary),youaresupposedtooutputthecorrespondingpostfixexpression,withparenthesesrefl
图解数据结构(开篇)
图解数据结构作者:天行参加了lucifer的91天学算法活动,不知不觉中已经一月有余。从盲目地做到有目的、有套路地去做。在lucifer的91课程中,从基础到进阶到专题,在这个月中,经历了基础篇的洗礼,不管在做题思路,还是做题速度都有了很大的提升,这个课程,
PAT(甲级)2019年秋季考试 7-2 Merging Linked Lists
72MergingLinkedLists(25分)GiventwosinglylinkedlistsL1$a_1$→$a_2$→⋯→$a_{n1}$→$a_n$andL2$b_1$→$b_2$→⋯→$b_{m1
PAT(甲级)2019年秋季考试 7-1 Forever
71Forever(20分)&34;Forevernumber&34;isapositiveintegerAwithKdigits,satisfyingthefollowingconstrains:thesumofallthedig
已加载文章中没有匹配内容,试试其他关键词或清空搜索。