avatar
我想碰见狮子女# astrology - 星座物语
c*e
1
可能想申请博士后,
原来是电子里面的半导体方向,想向医疗&Bio靠拢一些。因为毕竟可以研究的问题要多
一些。
想请办里面的大牛给支支招。推荐一些下面几年可能持续热门,而且opening的方向。
谢谢。
avatar
l*i
2
Given an int array of positive and negative numbers, rearrange it in O(1)
extra space such that all positive numbers are on the left and all negative
numbers are on the right, and the relative order of positive numbers, and
the relative order of the negative numbers are the same as in the input.
Can it be done in O(n)?
avatar
d*k
3
没有什么飞行的打算
好像不能像skymile一样换gift card?
avatar
d*e
4
我极力反对的说
avatar
S*i
5
同上,有什么需要注意的?!
avatar
S*S
6
这方向是大坑,慎入。去找IBM, Intel吧

【在 c******e 的大作中提到】
: 可能想申请博士后,
: 原来是电子里面的半导体方向,想向医疗&Bio靠拢一些。因为毕竟可以研究的问题要多
: 一些。
: 想请办里面的大牛给支支招。推荐一些下面几年可能持续热门,而且opening的方向。
: 谢谢。

avatar
r*o
7
问个简单问题,什么叫stable rearrange?

negative

【在 l***i 的大作中提到】
: Given an int array of positive and negative numbers, rearrange it in O(1)
: extra space such that all positive numbers are on the left and all negative
: numbers are on the right, and the relative order of positive numbers, and
: the relative order of the negative numbers are the same as in the input.
: Can it be done in O(n)?

avatar
f*r
8
还可以租车和住旅馆
avatar
b*t
9
peng

【在 S*****i 的大作中提到】
: 同上,有什么需要注意的?!
avatar
e*g
10
implantable sensor,

【在 c******e 的大作中提到】
: 可能想申请博士后,
: 原来是电子里面的半导体方向,想向医疗&Bio靠拢一些。因为毕竟可以研究的问题要多
: 一些。
: 想请办里面的大牛给支支招。推荐一些下面几年可能持续热门,而且opening的方向。
: 谢谢。

avatar
l*i
11
The relative orders are preserved.
Example:
input [-5 -7 3 4 -2 9 -1 7]
output [ 3 4 9 7 -5 -7 -2 -1]
avatar
y*g
12
去二手版帮其他人订票,换现金
avatar
a*s
13
哎呦喂,真来星版发贴了,嗬嗬
支持
avatar
r*u
14
我觉得不能O(n)。这个跟bubble sort差不多。

negative

【在 l***i 的大作中提到】
: Given an int array of positive and negative numbers, rearrange it in O(1)
: extra space such that all positive numbers are on the left and all negative
: numbers are on the right, and the relative order of positive numbers, and
: the relative order of the negative numbers are the same as in the input.
: Can it be done in O(n)?

avatar
f*h
15

skymile怎么换吉福卡呢?

【在 d***k 的大作中提到】
: 没有什么飞行的打算
: 好像不能像skymile一样换gift card?

avatar
j*n
16
狮子女狮子男最近都有人指名要阿
avatar
r*o
17
我觉得时间复杂度可以O(n)阿,
先全部扫描一篇,统计有多少正数和负数,假定正数个数和负数个数分别为n1和n2。
然后再扫描一遍,根据n1和n2我们可以知道这些数在新数组中的位置。
不过空间复杂度好像也要O(n)。

【在 r**u 的大作中提到】
: 我觉得不能O(n)。这个跟bubble sort差不多。
:
: negative

avatar
d*k
18
就delta换好多东西那网页
找到giftcard部分,一大堆呢
第一个就是AE的

【在 f*h 的大作中提到】
:
: skymile怎么换吉福卡呢?

avatar
S*i
19

恩恩!

【在 a****s 的大作中提到】
: 哎呦喂,真来星版发贴了,嗬嗬
: 支持

avatar
l*i
20
Divide and conquer can give you nlogn. But I don't know if O(n) is possible.
avatar
f*h
21

找到了~
thx~

【在 d***k 的大作中提到】
: 就delta换好多东西那网页
: 找到giftcard部分,一大堆呢
: 第一个就是AE的

avatar
S*i
22

我是因为东京爱情故事

【在 j**n 的大作中提到】
: 狮子女狮子男最近都有人指名要阿
avatar
r*o
23
能不能说说你的Divide and conquer算法阿,呵呵。

possible.

【在 l***i 的大作中提到】
: Divide and conquer can give you nlogn. But I don't know if O(n) is possible.
avatar
y*o
24
狮子会有的,莉香也会有的

【在 S*****i 的大作中提到】
:
: 我是因为东京爱情故事

avatar
l*i
25
split into two halves, solve each half recursively, then do some swaps to
get the positive subarray from right to left and the negative subarray from
right to left.
avatar
S*i
26
好好!
avatar
r*u
27
我觉得不对,in-place的话,每个element移动到对应的位置都是要O(n)步,无论用啥
法子。所以overall复杂度还是O(n^2)。

from

【在 l***i 的大作中提到】
: split into two halves, solve each half recursively, then do some swaps to
: get the positive subarray from right to left and the negative subarray from
: right to left.

avatar
a*u
28
为什么想要狮子座女生说说吧
avatar
l*i
29
dude, this is an array
avatar
y*o
30
狮子女都是光芒万丈,母仪天下,百鸟朝凤!

【在 a******u 的大作中提到】
: 为什么想要狮子座女生说说吧
avatar
r*u
31
so what? 你能把你O(nlogn)算法具体写出来,给个例子么?dude,不要想当然。

【在 l***i 的大作中提到】
: dude, this is an array
avatar
H*y
32
狮子男和狮子女一起会怎样?

狮子女都是光芒万丈,母仪天下,百鸟朝凤!

【在 y********o 的大作中提到】
: 狮子女都是光芒万丈,母仪天下,百鸟朝凤!
avatar
o*7
33
O(n)还是有希望的。虽然每个element移动最坏情况下确实要O(n)步,但是如果设计巧
妙的话,有可能并不是每一个
element都需要O(n),这样amortize下来,也许最后能平均成O(1). 最后也许O(n)就能
解决...
但是具体怎么做还没想到。

【在 r**u 的大作中提到】
: 我觉得不对,in-place的话,每个element移动到对应的位置都是要O(n)步,无论用啥
: 法子。所以overall复杂度还是O(n^2)。
:
: from

avatar
a*u
34
听着象母爱啊

【在 y********o 的大作中提到】
: 狮子女都是光芒万丈,母仪天下,百鸟朝凤!
avatar
c*y
35
好像不行,你试一个例子。

to
from

【在 l***i 的大作中提到】
: split into two halves, solve each half recursively, then do some swaps to
: get the positive subarray from right to left and the negative subarray from
: right to left.

avatar
y*o
36
《当辛巴遇见娜娜》

【在 H**********y 的大作中提到】
: 狮子男和狮子女一起会怎样?
:
: 狮子女都是光芒万丈,母仪天下,百鸟朝凤!

avatar
S*i
37

恩恩, 恩恩!

【在 y********o 的大作中提到】
: 狮子女都是光芒万丈,母仪天下,百鸟朝凤!
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。