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.
If you sort the flavours, a binary search could be used to check if the array contains a given value. The problem can also be solved without using a binary search though using alternative techniques, such as with using a hash map.
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
If you sort the flavours, a binary search could be used to check if the array contains a given value. The problem can also be solved without using a binary search though using alternative techniques, such as with using a hash map.