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.
We can also use map with almost similar implementation.
Key is required string and value is the number of occurance of that string. If a key is not present in map , it's value is '0' by default.
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
We can also use map with almost similar implementation. Key is required string and value is the number of occurance of that string. If a key is not present in map , it's value is '0' by default.