![]() |
VOOZH | about |
Problem Statement: Write a menu-driven program for using switch-case with following features:
Examples:
Approach: The idea is to use switch case for switching the case for menu-driven program for the phonebook directory and store the contact number in the hash-map and search the contact in the hash-map in O(1) time.
Below is the implementation of the above approach:
Output: