Redian新闻
>
请教高手下面这题的意思
avatar
请教高手下面这题的意思# JobHunting - 待字闺中
x*y
1
Write a program to synchronize data sets between data centers using as few
copies as possible.
Example 1:
----------
Input:
4
1 3 4
1 2 3
1 3
1 4 2
One Possible Correct Output:
2 2 1
4 1 2
2 2 3
4 4 3
3 1 4
avatar
l*8
2
Input:
4 data centers.
each row is the data each center has.
output
first column, data copy
second column, from center
third column, to center.

【在 x****y 的大作中提到】
: Write a program to synchronize data sets between data centers using as few
: copies as possible.
: Example 1:
: ----------
: Input:
: 4
: 1 3 4
: 1 2 3
: 1 3
: 1 4 2

avatar
x*y
3
I am not so clear yet. Can you let me know why the copies 2 from 2 to 1, but
they are 4 from 1 to 2.
Thanks

【在 l*********8 的大作中提到】
: Input:
: 4 data centers.
: each row is the data each center has.
: output
: first column, data copy
: second column, from center
: third column, to center.

avatar
x*y
4
I got it. The first column is the data copy not the times of data copies.
Thanks

【在 l*********8 的大作中提到】
: Input:
: 4 data centers.
: each row is the data each center has.
: output
: first column, data copy
: second column, from center
: third column, to center.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。