in unordered map <string,vector>
but it should be only int because in pairing we only do with datatype .plzz elaborate it
In line 8 bhaiya did
Here since one person can have many phone numbers -> so with one person multiple mapping has to be done.This is done by using an unordered map <string,vector< int >>
In pairing, you can also take the value a container apart from datatypes.
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.
i did not undrstand from line no.19 how p.first aand p.second because we never include pair stl in this how we are usin g p .first and p.second