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.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Vertical Paths
You are viewing a single comment's thread. Return to all comments →
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.