上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页
摘要: 题目链接: 1114 Family Property This time, you are supposed to help us ... 阅读全文
posted @ 2018-11-16 13:06 xzhws 阅读(35) 评论(0) 推荐(0) 编辑
摘要: dijstra经典题 相同路径取用时最短 相同用时取节点数最少 但注意用vector存储节点时,每次更新需要清空之前的值,保存最新的路径。 参考自:https://www.liuchuo.net/archives/2407 阅读全文
posted @ 2018-11-16 09:44 xzhws 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 题目链接: 1110 Complete Binary Tree Given a tree, you are supposed to ... 阅读全文
posted @ 2018-11-15 20:24 xzhws 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 题目链接: PAT1066 Root of AVL Tree An AVL tree is a self-balancing bin... 阅读全文
posted @ 2018-11-10 11:49 xzhws 阅读(35) 评论(0) 推荐(0) 编辑
摘要: PAT 1115 Counting Nodes in a BST A Binary Search Tree (BST) is rec... 阅读全文
posted @ 2018-11-07 21:52 xzhws 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1033 To Fill or Not to Fill With highways available, driving a ca... 阅读全文
posted @ 2018-10-27 11:21 xzhws 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1022 Digital Library A Digital Library contains millions of books... 阅读全文
posted @ 2018-10-17 15:52 xzhws 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1020 Tree Traversals Suppose that all the keys in a binary tree a... 阅读全文
posted @ 2018-10-16 20:49 xzhws 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1017 Queueing at Bank Suppose a bank has K windows open for servi... 阅读全文
posted @ 2018-10-14 20:02 xzhws 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 参考自: https://www.nowcoder.com/questionTerminal/5a5281aef52a4f6f943... 阅读全文
posted @ 2018-10-12 16:25 xzhws 阅读(48) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页