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.
When accessing the k-th/m-th/n-th element, all the test cases are off by one. The arrays are indexed from 1 to n instead of the usual 0 to n-1. This discrepancy caused the problem to take me over 24 hours to solve, whereas it should have taken around 90 to 120 minutes. Detail explaination: https://priceindanger.fr/
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Structuring the Document
You are viewing a single comment's thread. Return to all comments →
When accessing the k-th/m-th/n-th element, all the test cases are off by one. The arrays are indexed from 1 to n instead of the usual 0 to n-1. This discrepancy caused the problem to take me over 24 hours to solve, whereas it should have taken around 90 to 120 minutes. Detail explaination: https://priceindanger.fr/