Company: Ibm_2dec
Difficulty: medium
Signal Tower Calibration Problem Description In a tech park, N signal towers are placed in a straight line, numbered from 0 to N-1. An engineer tests these towers for M rounds. In each round: The engineer chooses one tower by its position. Call this the reference tower. That reference tower gets a signal strength of 0. Towers to the right of it get signal strengths of 1, 2, 3, ... as you move right. Towers to the left of it also get signal strengths of 1, 2, 3, ... as you move left. So in a single round the strength of the tower at position i is the absolute distance abs(i - p) , where p is that round's reference position. For example, if there are 6 towers and the chosen position is 3, the signal levels for that round are [3, 2, 1, 0, 1, 2] . After all the rounds are done, each tower remembers the highest signal strength it got in any round. Print that final list. Input Format The first line contains an integer N, the number of towers. The second line contains an integer M, the number