Recently updated blog
- Huawei od 2023 | What is Huawei od, od salary, od machine test questions list
- A complete collection of Huawei OD machine test questions, using Python to solve Huawei machine test questions | Machine Test Collection
- [Huawei OD machine test] full process analysis + experience sharing, question type sharing, cheating prevention guide
- Huawei od machine test, exclusive compilation of practical skills of those who have participated in the machine test
Solution to this topic: Integration testing of microservices
topic description
Now there are n container services, and the startup of the service may have certain dependencies (some services have no dependencies), and secondly, the startup and loading of the service itself will consume some time.
Give you an nxn two-dimensional matrix useTime, where useTime[i][i]=10 means that it takes 10 seconds for service i to start and load itself, and useTime[i][j]=1 means that service i starts dependent service j and starts, useTime [i][k]=0, it means that the service i start does not depend on the service k.
In fact, 0<= i, j, k <