Redian新闻
>
饶毅做外交部部长如何?
avatar
饶毅做外交部部长如何?# Biology - 生物学
h*o
1
Input:
1. an array of characters
2. a bunch of scores, for each
a. start (start position in the array)
b. end (end position in the array)
c. score (score is not related to the content of the substring or
length of the substring)
Scores could be overlapped.
Output:
all scores (there is no overlap on them) that have the maximum sum.
For example
Input:
"abcdedfhijk"
start: 1 end: 3 score: 5
start: 0 end: 10 score: 8
start: 5 end:6 score 4
Output:
start: 1 end: 3 score: 5
start: 5 end:6 score 4
Provide algorithm which is not brute force.
avatar
F*Q
2
RT
avatar
x*y
3
This is the same as the job selection DP problem, first sort according to
the end time, and then DP.
avatar
r*9
4
应该比现任的强。深通夷情,又有正确的立场,口才也好。
avatar
p*7
5
没看懂题,不知道string和答案有什么关系
avatar
s*s
6
方舟子组织部长?
薄熙来政法委书记,戴罪立功?

【在 F*Q 的大作中提到】
: RT
avatar
h*o
7

每一个substring有一个score, 但是substring 会overlap。找出所有的不overlap的
substring, 使得他们的sum of scores 最大。

【在 p********7 的大作中提到】
: 没看懂题,不知道string和答案有什么关系
avatar
k*0
8
方舟子是负责城管的吧?

【在 s******s 的大作中提到】
: 方舟子组织部长?
: 薄熙来政法委书记,戴罪立功?

avatar
E*a
9
I think so

【在 x***y 的大作中提到】
: This is the same as the job selection DP problem, first sort according to
: the end time, and then DP.

avatar
z*o
10
外交部得根据国防部的实力和国家的政策来骂娘,撒谎和装纯洁,饶毅还差得远。
★ Sent from iPhone App: iReader Mitbbs Lite 7.56
avatar
h*o
11
有Link吗?
avatar
T*S
12
饶毅的血性还是有的,这点比较重要。
avatar
a*8
16
背包问题。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。