Pergunta de entrevista da empresa Ruangguru.com

Coding Interview Level 2 Similar to level 1, but we now add an additional input which is an employee id. Only include departments that have this particular employee id in it. Sample Input: dictionary: {"general": [2,3,4], "infra": [3,5], "humor": [4,6]} employeeId: 3

Resposta da entrevista

Sigiloso

4 de out. de 2021

For level 2, just add an additional checker that iterates through the EmployeeId array to determine whether or not it satisfied the condition.