数据结构
lishengyaupc
这个作者很懒,什么都没留下…
展开
-
循环链表 -- 约瑟夫环-- 出现错误
在LinkList.h中的remove()中加入代码,问题解决原创 2019-02-27 19:36:02 · 202 阅读 · 0 评论 -
next_permutation算法
template <class BidirectionalIterator> bool next_permutation( BidirectionalIterator first, // iterator, like the C point BidirectionalIterator last ) { if(first == last) ...转载 2019-04-16 20:59:07 · 128 阅读 · 0 评论 -
链表中 clear() 函数
void clear(Node** phead) { Node* head = *phead; while( head->next != 0) { Node* del = head->next; head->next = del->next; delete del; ...原创 2019-07-31 17:00:33 · 1157 阅读 · 0 评论