We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hard Disk Drives
Hard Disk Drives
Sort by
recency
|
6 Discussions
|
Please Login in order to post a comment
Here is Hard Disk Drivers problem solution in Python Java c++ and C programming - https://programs.programmingoneonone.com/2021/07/hackerrank-hard-disk-drivers-problem-solution.html
C++ Solution
for the given sample input, the best position is 0, 5 not 0, 6
Can any one explan the problem in detail with diagram?
Here is an attempt: with costs for the connection shown on the edge connecting a hard drive to its node. Small circles with denote hard disks. Large circles denote the Nodes in the solution. This shows an alternate soution, with Nodes positioned at 1 and 5 instead.

Nice illustration! However, in my Chrome browser, the picture is cut off on the right side at 6+epsilon You clarified one of the items I was wondering about: Could multiple drives/computers occupy the same integer coordinate?
A computer can share a location with a hard drive but it would never be optimal for two computers to share a location.
anyone can explain this problem .i can't understand how to solve this