Disconnected Users Disconnected Users
English

Find how many users wouldn't receive your email if some nodes get crushed.

Input: Four arguments. Network structure (as list of connections between nodes), users on each node (as dict where keys are node-name and values are amount of users), name of node that sends email, list of crashed nodes.

Output: Int. Amount of users that wouldn't receive an email.

Example:

disconnected_users([
    ['A', 'B'],
    ['B', 'C'],
    ['C', 'D']
], {
    'A': 10,
    'B': 20,
    'C':...
You should be an authorized user in order to see the full description and start solving this mission.