Solución
solution.tsTypeScript
def decode_pairs(data: str, key: str, default_value: str) -> str:
# Escribe tu solución aquí
if len(data) == 0:
return default_value
data_dictionary = {}
for element in data.split(";"):
if element.split("=")[0] not in data_dictionary:
data_dictionary[element.split("=")[0]] = element.split("=")[1]
return data_dictionary.get(key, default_value)0respuestas