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.
This challenge is categorized as "Difficult"? I solved it in just a few minutes using a straight-ahead O(n^2) loop and it worked. Then I went back and re-did it with an associative array (hash map) in just a few more minutes and it worked as well. I don't think I learned anything about data structures or sparse arrays.
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
This challenge is categorized as "Difficult"? I solved it in just a few minutes using a straight-ahead O(n^2) loop and it worked. Then I went back and re-did it with an associative array (hash map) in just a few more minutes and it worked as well. I don't think I learned anything about data structures or sparse arrays.