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.
Well, I guess the idea was to search about Sparse Arrays (hence the title) and implement the challenge using it. Hashmaps are the obvious choice, even though Sparse Arrays will have the best compromise IMHO (storage space vs performance).
You still can go ahead and learn about sparse arrays and perhaps re-implement the solution in order to learn something out of this challenge :)
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 →
Well, I guess the idea was to search about Sparse Arrays (hence the title) and implement the challenge using it. Hashmaps are the obvious choice, even though Sparse Arrays will have the best compromise IMHO (storage space vs performance).
You still can go ahead and learn about sparse arrays and perhaps re-implement the solution in order to learn something out of this challenge :)