由买买提看人间百态

topics

全部话题 - 话题: ssearch
(共0页)
n*s
发帖数: 752
1
来自主题: JobHunting版 - 问一个算法题
def sSearch(a, v):
tot_len = len(a)
l = 0
r = tot_len-1
while l < r :
m = (l+r) //2
if a[m] > v:
r = m -1
elif a[m] < v:
l = m + 1
else:
r = m # start pointer is saved here
if a[l] is v:
return r
else:
return -1
a = [1,1, 2, 3,3,3,5, 6]
print a
print sSearch(a,3)
n******p
发帖数: 283
2
来自主题: Immigration版 - A question on CNKI
I have found that CNKI changed its website and the ssearch results could be
English. However, it no longer shows the nunmber of citations per paper in
the summary. Does anybody know how to fix it? Thanks!!
k******i
发帖数: 80
w*******y
发帖数: 60932
4
来自主题: _DealGroup版 - 【$】APC-J25B $99 at BestBuy
First post: For Cyber Sunday/Monday Best Buy has this APC for 99 bux usually
220+. Ssearched and everywhere else is still regular price.
Link:
http://www.bestbuy.com/site/APC - J Type 1500 VA Battery Back-Up System/2984066.p?id=1218369111466&skuId=2984066
(共0页)