09 2016 档案

PAT 1057
摘要:Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push ( 阅读全文

posted @ 2016-09-06 15:17 Prince1994 阅读(195) 评论(0) 推荐(0)

1020. Tree Traversals
摘要:Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou 阅读全文

posted @ 2016-09-04 23:22 Prince1994 阅读(144) 评论(0) 推荐(0)

1034. Head of a Gang
摘要:One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is re 阅读全文

posted @ 2016-09-04 20:02 Prince1994 阅读(149) 评论(0) 推荐(0)

1029. Median
摘要:Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, a 阅读全文

posted @ 2016-09-03 23:46 Prince1994 阅读(144) 评论(0) 推荐(0)

导航