随笔分类 -  PAT

摘要:题目:http://pta.patest.cn/pta/test/16/exam/4/question/666 PTA - Data Structures and Algorithms (English) - 5-4 Given a tree, you are supposed to list al 阅读全文
posted @ 2015-09-14 08:53 claremz 阅读(351) 评论(0) 推荐(0)
摘要:题目:http://www.patest.cn/contests/pat-a-practise/1051 Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N an 阅读全文
posted @ 2015-09-12 23:42 claremz 阅读(511) 评论(0) 推荐(0)
摘要:题目:http://pta.patest.cn/pta/test/15/exam/4/question/836 PTA - 数据结构与算法(中文) - 5-21 算术表达式有前缀表示法、中缀表示法和后缀表示法等形式。前缀表达式指二元运算符位于两个运算数之前,例如2+3*(7-4)+8/4的前缀表达式 阅读全文
posted @ 2015-09-12 23:27 claremz 阅读(3056) 评论(0) 推荐(2)
摘要:题目:http://www.patest.cn/contests/pat-b-practise/1010 设计函数求一元多项式的导数。(注:xn(n为整数)的一阶导数为n*xn-1。) 输入格式: 以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。 输出格 阅读全文
posted @ 2015-09-11 23:13 claremz 阅读(810) 评论(0) 推荐(0)
摘要:题目:http://www.patest.cn/contests/pat-a-practise/1074 转自:http://blog.csdn.net/xtzmm1215/article/details/43195793 法一:http://www.cnblogs.com/claremore/p/ 阅读全文
posted @ 2015-09-11 22:57 claremz 阅读(486) 评论(0) 推荐(0)
摘要:题目:http://www.patest.cn/contests/pat-a-practise/1074 Given a constant K and a singly linked list L, you are supposed to reverse the links of every K e 阅读全文
posted @ 2015-09-11 21:40 claremz 阅读(423) 评论(0) 推荐(0)
摘要:题目: PAT: http://www.patest.cn/contests/pat-a-practise/1007PTA: http://pta.patest.cn/pta/test/18/exam/4/question/611 Given a sequence of K integers { N 阅读全文
posted @ 2015-09-05 21:57 claremz 阅读(966) 评论(0) 推荐(0)