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.

- Prepare
- Algorithms
- Dynamic Programming
- Oil Well
- Discussions

# Oil Well

# Oil Well

#### Sort by

recency

#### |

#### 10 Discussions

#### |

Please Login in order to post a comment

Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Oil Well Problem Solution

Here is Oil Well problem solution in Python Java C++ and C programming- https://programs.programmingoneonone.com/2021/07/hackerrank-oil-well-problem-solution.htmlPython 3 solution

If I'm wrong, please alert me but Calculations in the explanation section are given wrong. The following calculations must be 3 but they were calculated as 4:

(3, 3) (1, 1) (2, 1) ==> cost = 0 + 2 + 2 = 4 (3, 3) (2, 1) (1, 1) ==> cost = 0 + 2 + 2 = 4

am I doing an error?

So the ACME distance is the induced metric of the infinity/maximum norm for a two dimensional vector space.

Apparently also called Chebyshev distance.