Back to problems

Find Values Unique to the Current User

Algorithm · Meta · Easy

You are told who the active user is through the string current_user, and you receive a mapping user_values in which user_values[user] holds the integer values that user owns. Your job is to collect every value that the active user owns and that no other user owns. Report those values sorted from smallest to largest. Input Format Line 1: the active user's name, current_user Line 2: an integer n, how many users follow Each of the next n lines has the form user k v1 v2... vk…

Loading the rest of the question…