0

At Dropbox, they have a lot of hard drives, literally. The size of the hard drive... (Problem Solving)

At Dropbox, they have a lot of hard drives, literally. The size of the hard drive does not matter, but the numbers do, to fit them all in one big server. You have to fit the 28625 TB data into least number of hard drives. Find the least number of hard drives to fit 28625 TB. You are given different sized hard drives as input to use. /* Here are hard drives given storage in TBs */ 34 132 181 232 593 413 862 887 808 18 35 89 356 640 339 280 975 82 345 398 948 372 91 755 75 153 948 603 35 694 722 293 363 884 264 813 175 169 646 138 449 488 828 417 134 84 763 288 845 801 556 972 332 564 934 699 842 942 644 203 406 140 37 9 423 546 675 491 113 587

20th Jul 2020, 3:14 AM
Mukhammadyusuf Abdurakhimov
Mukhammadyusuf Abdurakhimov - avatar
3 Respostas
+ 1
Debugging is an important part of being a developer. Hint: set drive to a low number like 35 where the answer should be 1 drive required to see the error
20th Jul 2020, 5:05 AM
JME
20th Jul 2020, 3:17 AM
Mukhammadyusuf Abdurakhimov
Mukhammadyusuf Abdurakhimov - avatar
0
I have just solved it but recruiter saying it is not correct.
20th Jul 2020, 3:17 AM
Mukhammadyusuf Abdurakhimov
Mukhammadyusuf Abdurakhimov - avatar