![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
two pointers
xiao1guaishou
这个作者很懒,什么都没留下…
展开
-
PAT A1029
题目 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, and the median of S2 = { 9, 10, 15, 16, 17 ...原创 2019-04-07 16:10:58 · 180 阅读 · 0 评论 -
PAT A1048
题目: Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. How...原创 2019-04-01 13:22:58 · 139 阅读 · 0 评论 -
PAT A1089
题目: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input ...原创 2019-04-08 11:49:06 · 185 阅读 · 0 评论