按降序排序
Input :A=[a1,a2,a3,........an] and a value v
Output: v=A[i] or v=NIL
so
for i=1to A.length
if A[I]=v
return i
end if
end for
return NIL
按降序排序
Input :A=[a1,a2,a3,........an] and a value v
Output: v=A[i] or v=NIL
so
for i=1to A.length
if A[I]=v
return i
end if
end for
return NIL