SIMPLE EXPALNATION✌️🔥💕💕
Intuition:Let the first mouse eat those particular cheese which the second mouse would have eaten with lesser reward amount.\n\n\n\n# Code\n\nclass Solution {\n
# Intuition:Let the first mouse eat those particular cheese which the second mouse would have eaten with lesser reward amount.\n\n\n\n# Code\n```\nclass Solution {\npublic:\n    int miceAndCheese(vector<int>& reward1, vector<int>& reward2, int k) {\n        priority_queue<pair<int,int>>pq;\n        int ans=0;\n        for(int i=0;i<reward1.size();i++){\n            pq.push({reward1[i]-reward2[i],i});\n\n        }\n        while(k--){\n            auto it=pq.top();\n            ans+=reward1[it.second];\n            pq.pop();\n            \n        }\n        while(!pq.empty()){\n            auto it=pq.top();\n            ans+=reward2[it.second];\n            pq.pop();\n        }\n        return ans;\n        \n    }\n};\n```
['Heap (Priority Queue)', 'C++']