原创 雙鏈表實現

雙鏈表 1、頭文件#ifndef lcthw_List_h #define lcthw_List_h #include <stdlib.h> struct ListNode; typedef struct ListNode {

原创 C樹操作,前中後序遞歸遍歷,前中後序非遞歸遍歷,樹狀顯示

/* * BTress.c * * Created on: 2013-9-3 * Author: youyou */ #include<stdio.h> #include <stdlib.h> typedef str

原创 快速排序、二叉搜索樹

快速排序、二叉搜索樹生成、二分查找 之前一直在搞java,C都生疏了,現在開始把常用的數據結構和算法統統打一遍 #include <stdio.h> #include <stdlib.h> typedef struct node {