摘要: 本题要求实现一个函数,将两个链表表示的递增整数序列合并为一个非递减的整数序列。 函数接口定义: List Merge( List L1, List L2 ); 其中List结构定义如下: typedef struct Node *PtrToNode; struct Node { ElementTyp 阅读全文
posted @ 2021-05-15 23:25 keiiha 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 本题要求实现二分查找算法。 函数接口定义: Position BinarySearch( List L, ElementType X ); 其中List结构定义如下: typedef int Position; typedef struct LNode *List; struct LNode { E 阅读全文
posted @ 2021-05-15 23:21 keiiha 阅读(92) 评论(0) 推荐(0) 编辑
摘要: This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2021-05-15 11:13 keiiha 阅读(55) 评论(0) 推荐(0) 编辑
摘要: ...刚发现这一系列题目的名称是PAT, 一直搞错了以为是PTA 虽然也没啥问题.哈哈哈哈 PTA是网站名字 ,PAT 是考试名字 Calculate a+b and output the sum in standard format -- that is, the digits must be s 阅读全文
posted @ 2021-05-15 01:06 keiiha 阅读(57) 评论(0) 推荐(0) 编辑