Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:优质算法给大家参考In Reply To:Re:优质算法给大家参考 Posted by:wangguyue86 at 2010-09-20 16:42:27 > > st[i]=flag*1000+i ; //将秩和原来的下标绑定 > 这里可能会出问题 如果flag相等的话 会去比较i的值 造成原来的两个字符串颠倒位置 说的对,快速排序是不稳定排序 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator