is there any data structure other then dictionary, we can use in this. I am thinking of storing the name and salaries in dictionary as a key value pair, will it be fine?
Sort game problem
you can use the pair<string, int> datatype, and sort the strings accordingly using custom mysort function
please mark your doubt as resolved if you are satisfied
can you give me links from where i can read about that because i have never heard of anything like this
Hi Piyush I am sharing my code with you so you can better understand the technique. https://ide.codingblocks.com/s/183203
Please try to implement it by yourself after understanding the logic and the syntax.
You can read more about pairs in c++ here : http://www.cplusplus.com/reference/utility/pair/pair/
the custom mysort function has been discussed in the course, if you have any doubts regarding that you may rewatch the video or raise a doubt.
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.