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?