上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 49 下一页
摘要: 1.如果是无权图的最短路径可以使用DFS来求最短路径,比较方便,可以记录路径和距离,维护一些变量也较为方便。 "PAT 列题参考:PAT 1111 Online Map" 阅读全文
posted @ 2018-09-15 21:44 A-Little-Nut 阅读(230) 评论(0) 推荐(0) 编辑
摘要: In computer science, a heap is a specialized tree based data structure that satisfies the heap property: if P is a parent node of C, then the key (the 阅读全文
posted @ 2018-09-15 21:30 A-Little-Nut 阅读(148) 评论(0) 推荐(0) 编辑
摘要: This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed grap 阅读全文
posted @ 2018-09-15 21:28 A-Little-Nut 阅读(247) 评论(0) 推荐(1) 编辑
摘要: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte 阅读全文
posted @ 2018-09-15 21:26 A-Little-Nut 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains 阅读全文
posted @ 2018-09-15 21:23 A-Little-Nut 阅读(162) 评论(0) 推荐(0) 编辑
摘要: The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. A binary search tree (BST) i 阅读全文
posted @ 2018-09-15 21:21 A-Little-Nut 阅读(156) 评论(0) 推荐(0) 编辑
摘要: A clique is a subset of vertices of an undirected graph such that every two distinct vertices in the clique are adjacent. A maximal clique is a clique 阅读全文
posted @ 2018-09-15 21:17 A-Little-Nut 阅读(254) 评论(0) 推荐(0) 编辑
摘要: After each PAT, the PAT Center will announce the ranking of institutions based on their students' performances. Now you are asked to generate the rank 阅读全文
posted @ 2018-09-15 21:14 A-Little-Nut 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Look and say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s 阅读全文
posted @ 2018-09-15 21:10 A-Little-Nut 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a g 阅读全文
posted @ 2018-09-15 21:08 A-Little-Nut 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 49 下一页