随笔分类 - 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
阅读全文
摘要:题目: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
阅读全文
摘要:题目:http://pta.patest.cn/pta/test/15/exam/4/question/836 PTA - 数据结构与算法(中文) - 5-21 算术表达式有前缀表示法、中缀表示法和后缀表示法等形式。前缀表达式指二元运算符位于两个运算数之前,例如2+3*(7-4)+8/4的前缀表达式
阅读全文
摘要:题目:http://www.patest.cn/contests/pat-b-practise/1010 设计函数求一元多项式的导数。(注:xn(n为整数)的一阶导数为n*xn-1。) 输入格式: 以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。 输出格
阅读全文
摘要:题目:http://www.patest.cn/contests/pat-a-practise/1074 转自:http://blog.csdn.net/xtzmm1215/article/details/43195793 法一:http://www.cnblogs.com/claremore/p/
阅读全文
摘要:题目: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
阅读全文
摘要:题目: 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
阅读全文