[Huawei OD Unified Exam B Paper | 100 points] Simulated message queue (C++ Java JavaScript Python)

Instructions for the new question bank of Huawei OD Unified Examination A + B

In May 2023, Huawei officially revised the 2022/0223Q (1/2/3/4) to OD unified examination (A paper) and OD unified examination (B paper).
The link you receive will be marked with A roll or B roll. Please note: According to the feedback, most of the current ones received are B rolls. But there is still a chance to get the A roll.
Paper A corresponds to the new question bank of 2023 (2022Q4 20223Q1) Paper B corresponds to some of the 20022 exam questions and new questions

Column: 2023 Huawei OD Machine Test (A Volume + B Volume) (C++JavaJSPy)
Column: 2023 Huawei OD Machine Test (A Volume) (C++ Java JS Py)
Column: 2023 Huawei OD Machine Test (B Volume) (C++ Java JS Py)

topic description

Let's simulate the operation of a message queue. There is a publisher and several consumers. The publisher will send a message to the message queue at a given moment.

  • If there is a consumer subscription in the message queue at this time, the message will be sent to the one with the highest priority among the subscribed consumers (consumers in the input are arranged in ascending order of priority);
  • If there are no subscribed consumers at this time&#x

Guess you like

Origin blog.csdn.net/banxia_frontend/article/details/131159958