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.
This is something that is debated a decent amount, but in my opinion reading input is included in time complexity(On HackerRank). It counts on HackerRank because reading from Stdin is counted as part of the test case runtime. If the input was pulled before runtime was tracked and then passed to our functions, I could be swayed.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fair Rations
You are viewing a single comment's thread. Return to all comments →
This is something that is debated a decent amount, but in my opinion reading input is included in time complexity(On HackerRank). It counts on HackerRank because reading from Stdin is counted as part of the test case runtime. If the input was pulled before runtime was tracked and then passed to our functions, I could be swayed.