avatar
文学城新闻图片# Joke - 肚皮舞运动
v*n
1
Given a sorted array of n integers that has been rotated an unknown number
of times, give an O(log n) algorithm that finds an element in the array. You
may assume that the array was originally sorted in increasing order.
avatar
k*r
2
现在流行这个?
avatar
w*g
4
这是什么?

【在 k***r 的大作中提到】
: 现在流行这个?
avatar
i*e
5
Solving this problem does not require the knowledge of where the pivot is,
even though this is O(log N).
Applying binary search by changing the invariant will do, and is O(log N).
The code will be more elegant.
avatar
B*1
7
Right, I should give out the link from your website which is the best.
avatar
d*8
8
打码的是什么部位?

【在 k***r 的大作中提到】
: 现在流行这个?
avatar
A*u
9
大牛 请教一下
我看了你的算法 很巧妙
但是只适用于rotate一次
题目好像说roate了很多次。
这样的话,是什么思路呢

【在 i**********e 的大作中提到】
: Solving this problem does not require the knowledge of where the pivot is,
: even though this is O(log N).
: Applying binary search by changing the invariant will do, and is O(log N).
: The code will be more elegant.

avatar
k*r
10
从众人的反应我觉得是个假jj....

【在 d*******8 的大作中提到】
: 打码的是什么部位?
avatar
B*1
11
Why not run his code and try?
avatar
c*i
12
媒体标志吧, 不想给别的媒体打广告。

【在 d*******8 的大作中提到】
: 打码的是什么部位?
avatar
A*u
13
别生气
我这才明白

【在 B*******1 的大作中提到】
: Why not run his code and try?
avatar
i*a
14
看到摸大腿
avatar
y*u
16
不但结婚,连娃都有了

【在 s*******n 的大作中提到】
: 这俩人不认识就结婚啦?这世道
avatar
x*s
17
是邓超吗
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。