Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For examp[……]
02-线性结构3 Reversing Linked List (PTA)
发表评论
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For examp[……]
开一个新坑,更新在PTA上练习的代码,题目集 中国大学MOOC-陈越、何钦铭-数据结构-2020春
本题要求实现二分查找算法。
其中List
结构定义如下:
L
是用户传入的一个线性表,其中ElementType
元素可以通过>、==、<进行比[……]