Tag Archive for: virus

Get infected parameters starting from a specific carrier

Imagine one guy got infected by a virus and you want to detect potential infections by direct contact. We have an array that represents the city where he lives and subarrays that represent the houses where he went. We are gonna use numbers (people identification) for our example.

Updated version using Set properly thanks to japanfever