惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
H
Help Net Security
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
博客园 - 叶小钗
Y
Y Combinator Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
C
Check Point Blog
Recent Announcements
Recent Announcements
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
B
Blog

博客园 - HonestMan

面试百问 o,1的感悟 公司内部推荐 debain oracle a linked list, find the node that the last node point to. Get balance noe Memory - HonestMan - 博客园 ShuffleMerge---microsoft's interview question 新手开始学习linux print all Permutation of a string An funy question! Google, hire me How to interview a programmer? Binary search tree convert to double linked list. Search in Binary tree spilt a list wirte a function for counting a linked list length Remove repeat char from a string
insert method
HonestMan · 2007-09-26 · via 博客园 - HonestMan

void InsertMethod(char[] la, int n)
{  
    
    for(int i=2; i<n; i++)
    {
        //watch out
        la[0]=la[i];
        //
        if(la[i]<la[i-1])
        {
             for(int j=i-1; la[0]<la[j]; j--);
            la[j+1]=la[j];
            la[j+1]=la[0];
        }
    }
 }
////////////////////////

posted @ 2007-09-26 17:07  HonestMan  阅读(187)  评论(0)    收藏  举报