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 you can also use trie Data Structure Just in case if the input is very big.
But in this question the input set is very small so you can just use simple code.
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 you can also use trie Data Structure Just in case if the input is very big. But in this question the input set is very small so you can just use simple code.