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.
Hi. I am new to sparse arrays so could you explain your code to me?
As I see it, you are using a something like an array representation of a trie...is that correct? I particularly do not understand the use of the subnodes array properly.
How are you storing the indices with the values or storing the total number of zeroes?
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 →
Hi. I am new to sparse arrays so could you explain your code to me?
As I see it, you are using a something like an array representation of a trie...is that correct? I particularly do not understand the use of the subnodes array properly.
How are you storing the indices with the values or storing the total number of zeroes?