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 calling the kth/mth/nth element everything in the test cases is off by one. Instead of going from 0:n-1 the arrays go from 1:n. This made the problem take >24 hours instead of 90:120 minutes for me to solve.
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 calling the kth/mth/nth element everything in the test cases is off by one. Instead of going from 0:n-1 the arrays go from 1:n. This made the problem take >24 hours instead of 90:120 minutes for me to solve.