[Full Score] [Huawei OD machine test real questions 2023 JAVA&JS] Calculating network signals

HUAWEI OD machine test real questions, the 2023 year machine test question bank is fully covered, click here for the guide of brushing the questions

Calculate network signal

Wide search array of knowledge points

 Time limit: 1s Space limit: 256MB Limited language: unlimited

Title description:

The network signal will attenuate layer by layer after transmission, and it cannot directly penetrate through obstacles. In this case, it is necessary to calculate the value of the network signal at a certain location. Note: The network signal can bypass the barrier.
The two-dimensional array of array[m][n] represents the grid map,
array[i][j]=0 means that row i and column j are empty positions; array[i][j] =x (x is a positive integer) means row i and column j are signal sources, and the signal strength is x; array[i][j]=-1 means row i and column j are barriers.
There is only 1 signal source, and there may be 0 or more barriers

Guess you like

Origin blog.csdn.net/qq_34465338/article/details/128643705