Pergunta de entrevista da empresa Particle41

kafka, rabbitmq, tableau, sql optimization, and code

Resposta da entrevista

Sigiloso

3 de jul. de 2026

comparison between kayak/rmq, parts of tableau, remove distinct, code - # You are provided with a nested dictionary that may contain null (represented as None in Python), # empty strings (""), or empty structures (such as empty dictionaries or lists) as values. # Your task is to write a function to clean this dictionary by removing all key-value pairs where the value is: # None, An empty string (""), An empty dictionary ({}), An empty list ([]) # Additionally, if after cleaning, a dictionary becomes empty, it should also be removed from its parent structure. # For example # Input: data = { "a": None, "b": "", "c": { "d": 1, "e": None, "f": { "g": "", "h": 2, "i": {} }, "j": [] }, "k": [], "l": {} } # Output = { "c": { "d": 1, "f": { "h": 2 } } }