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.
My first attempt was a hashmap in Python3 via enumerate and two dictionaries. However, hashmaps take up more memory and, though I passed the sample tests, the large testcases failed due to Runtime error.
This is the first time I've encountered this on HackerRank, and it was not a timeout error. So that's when I surmised it's due to an overflow in memory (as when one naively breaks the callstack with too much recursion). I agree, this problem should not be labeled with the prefix "Hash Tables:" but rather "Binary Search:".
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
My first attempt was a hashmap in Python3 via enumerate and two dictionaries. However, hashmaps take up more memory and, though I passed the sample tests, the large testcases failed due to
Runtime error
.This is the first time I've encountered this on HackerRank, and it was not a timeout error. So that's when I surmised it's due to an overflow in memory (as when one naively breaks the callstack with too much recursion). I agree, this problem should not be labeled with the prefix "Hash Tables:" but rather "Binary Search:".