
算法
排序&leetcode
陌逸_逺
Ideas fly on code
展开
-
搜索二叉树(插入,删除,遍历)
C++ , windwo , VS2017实现搜索二叉树 , 插入 , 删除 ,遍历 基本操作//define_1.h 文件 对结构体的定义template <class T> struct Node { int date; Node <T> * lCHILD; Node <T> * rCHILD; }; template < class T ...原创 2018-03-29 21:17:27 · 340 阅读 · 1 评论 -
Sort Algorithm
1. DirectInsert sort 直接插入排序,将所要排序的数字放到有序队列中 void DirectInsert(int a[10] , int num){ int i = 0; int j ; int temp ; for( ; i < num ; i++){ for( j = i ; j > 0 ; j-- ){ if(a[j] < a[...原创 2018-09-17 22:34:57 · 406 阅读 · 0 评论