sir why are we not using multimap here instead of map<int, vector >
Sir why are we not using multimap here
@pankajsingh
hello Pankaj,
we use multimap when key of the map can repeat (ie key is not unique) but here all keys will be unique

thats why we are map instead of multimap
no sir in multi map we can have a key with multiple values
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
