Company: Barclays
Difficulty: medium
Signal Strength Network Problem The current selected programming language is C++14. We emphasize the submission of a fully working code over partially correct but efficient code. Once submitted, you cannot review this problem again. You can use cout to debug your code. The code may not work in case of syntax/runtime error. The version of GCC being used is 5.5.0 An organization has assigned X engineers to work on a project. The engineers need a way to connect with each other and share data. Austin, the network administrator, has built a hierarchical network that allows an engineer to connect to two engineers at most in the network. He establishes all full duplex connections in the network (i.e if there is a connection between A and B, then data can be transferred from A to B and B to A). The strength of the signal decreases by one unit upon each transmission between directly connected engineers. Therefore, Austin needs to determine the minimum strength at which the signal must be sent s