Domanda di colloquio di Two Sigma

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 done

Risposte di colloquio

Anonimo

5 set 2012

Input: line1: number of data sets line2,3,4... = the actual data sets Output: optimal copy strategy: each line must contain one copy instruction Eg: 4 1 2 means move number 4 from data set 1 to data set 2

3

Anonimo

22 mag 2012

Could you provide more details on the actual question? hard to answer without more information ...

1