![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
HHLucifer
这个作者很懒,什么都没留下…
展开
-
6-1 二分查找 (10 分)
本题要求实现二分查找算法。函数接口定义:Position BinarySearch( List L, ElementType X );其中List结构定义如下:typedef int Position;typedef struct LNode *List;struct LNode { ElementType Data[MAXSIZE]; Position Last; /* 保存线性表中最后一个元素的位置 */};L是用户传入的一个线性表,其中ElementType元素可以原创 2021-12-02 09:09:47 · 527 阅读 · 0 评论 -
6-1 String Factory I (10 分)
You got a job in String Factory. In String Factory, there are n kinds of raw materials(as strings), which can be processed into products(also as strings). To make perfect products, cutting and splicing are necessary.Your job is making raw materials into p原创 2021-11-12 10:57:37 · 92 阅读 · 0 评论