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.
The crux here is that the criteria does not mention uniqueness in the queries. That's bad and makes this problem bad since I can't ask the writer if that is a part of the criteria or not.
You'd also not want to repeat queries if you don't have to in the real world.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
The crux here is that the criteria does not mention uniqueness in the queries. That's bad and makes this problem bad since I can't ask the writer if that is a part of the criteria or not.
You'd also not want to repeat queries if you don't have to in the real world.