分类: 算法-数据结构
-
关于算法-数据结构:PAT甲级2019年冬季考试-71-Good-in-C
When your interviewer asks you to write “Hello World” u…
-
关于算法-数据结构:PAT甲级2019年春季考试-74-Structure-of-a-Binary-Tree
Suppose that all the keys in a binary tree are distinct…
-
关于算法-数据结构:PAT甲级2019年春季考试-73-Telefraud-Detection
Telefraud(电信欺骗) remains a common and persistent problem…
-
关于算法-数据结构:PAT甲级2019年春季考试-72-Anniversary
Zhejiang University is about to celebrate her 122th ann…
-
关于算法-数据结构:PAT甲级2019年春季考试-71-Sexy-Primes
Sexy primes are pairs of primes of the form (p, p+6), s…
-
关于算法-数据结构:PAT甲级1155-Heap-Paths
给定一颗N个节点的齐全二叉树的档次序列,须要输入该树的所有从根节点到叶子节点的门路(优先拜访右子树),而后判断…
-
关于算法-数据结构:PAT甲级1154-Vertex-Coloring
咱们应用set diff_colors保留每一次输出的每一个顶点,其大小就是不同顶点的个数,而后遍历每一条边,…
-
关于算法-数据结构:PAT甲级1152-Google-Recruitment
应用字符串s承受输出的字符串,并枚举每个k位的子串(起始地位从0到L-K),而后再转换成整数,判断是否是素数,…
-
关于算法-数据结构:PAT甲级1151-LCA-in-a-Binary-Tree
咱们借鉴建树的递归过程实现树的局部搜寻,如果以后搜寻的子树的根节点和查问节点U和V相等,阐明其中之一就是先人,…
-
关于算法-数据结构:PAT甲级1148-Werewolf-Simple-Version
已知 N 名玩家中有 2 人表演狼人角色,有 2 人说的不是瞎话,有狼人扯谎但并不是所有狼人都在扯谎。要求你找…