- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 c++实现两有序链表合并成一个新链表
struct Node { int x; Node * next; Node(int x1,Node * next1) { x = x1; next = next1; } }; //--两个有序链表合并-假设排列方式为从小到大-- Node * sortHead(Node * head1,Node * head2) { if(head1 == nullptr) return
2016-11-22 16:28:04 4152
原创 c++实现单链表逆序
struct Node { int x; Node * next; Node(int x1,Node * next1) { x = x1; next = next1; } }; Node * Inverted(Node * head) { Node * movepo = head;//标记原链表需要移动的节点 Node * Movenext = nullptr; Node
2016-11-22 13:58:46 2197
原创 lua实现快排,选择排序--与c++一样
function sortTable(table_array,lift_id,right_id)--lua实现快速排序 if(lift_id local int_X = table_array[lift_id]--标记中间点 local length = right_id--记录长度 local start_id = lift_id while lift_id w
2016-11-21 10:27:45 679
图片压缩工具pngyu
2017-09-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人