![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
iteye_18140
这个作者很懒,什么都没留下…
展开
-
二分查找【c语言】
[code="c"]#include int halfSearch( int arr[], int num, int size ) { int min = 0, max = ( size - 1), mid; if ( size == 0 ) { return -1; } while ( 1 ) { // 1. when the boundary is "min" or ...原创 2012-05-21 09:19:59 · 103 阅读 · 0 评论 -
插入排序【c语言】
[code="c"]#include void insertSort( int arr[] , int size ) { int i , j , k , f /*First element*/; // 0 1 2 3 4 // 4 3,2,1 // 3 4 2,1 // 2 3 4 1 // 1. 遍历无序区域 for ( i = 1; i < ...原创 2012-05-22 13:49:10 · 149 阅读 · 0 评论