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:O(1)时间就可以判断出来是降序还是升序

Posted by MasterLuo at 2008-10-23 18:42:59
In Reply To:非降序也属于有序吧。这样你的A[i]-A[j]=i-j就没有什么意义了,因为可能有重复元素 Posted by:wywcgs at 2008-10-23 18:39:25


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