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 :)
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 :)
Can you tell how to use sparse arrays for this problem?