@Puppy I double dog dare you to find fault with this
class Solution
{
public:
static std::vector<std::string> findTopCommonSelection(std::unordered_map<std::string, std::vector<std::string>> const &friends)
{
std::unordered_map<std::string, size_t> preferences;
for (const auto &selections : friends)
{
for (const auto &resturant : selections.second)
{
preferences[resturant]++;
};
};
size_t maxValue = 0;
(see full text)