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.
From my experience, the getOrDefault() method is slower than the simple if-else get statements, and helped me get over the line for no fewer than 3 test cases.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Frequency Queries
You are viewing a single comment's thread. Return to all comments →
From my experience, the getOrDefault() method is slower than the simple if-else get statements, and helped me get over the line for no fewer than 3 test cases.