Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:优质算法给大家参考

Posted by lakeo at 2013-04-04 19:58:03 on Problem 1007
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator