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
- Graph Theory
- Vertical Paths
- Discussions
Vertical Paths
Vertical Paths
Sort by
recency
|
14 Discussions
|
Please Login in order to post a comment
Horribly explained challenge. I had to paste the text in chatgpt to get it explained properly. Wording is poor, 'cost' should actually have been earnings or profit. Paths could be Deliveries or Offers.
Further, the method definition (in Java 8) doesn't match expected results. Test 4 specifically has a result for a test: 17079508449, which is too large for an int. However, the method is defined as returning an int.
I have no clue how 90+% finished this challenge (it's actually the hard challenge with highest success rate), but I'd have to assume many copy-pasted the solution from elsewhere.
Here is my solution in java, C, C++ HackerRank Vertical Paths Problem Solution
Here is the solution of Vertical Paths Click Here
Here is problem solution - https://programs.programmingoneonone.com/2021/07/hackerrank-vertical-paths-problem-solution.html
1 8 8 1 2 3 1 3 1 2 4 5 2 5 1 2 6 1 3 7 2 4 8 1 1 2 3 2 8 5 1 8 7 1 5 8 1 6 10 3 7 5 1 7 6 1 7 6
this input is not alligned with the question