2023 Huawei OD interview hand-torn code real questions [implementation of the memo system]

        There is no original question on this website, but I saw that two friends in the group have encountered this question, and both of them share the screen directly with the interviewer in the Huawei od interview, and then let it be realized. It's not a difficult problem, but to examine reading comprehension ability and design ability, it's a bit of a practical investigation . [ It may be a small requirement in od's daily work ]

        Directly above the picture below:

         The topic should be to ask for the implementation of the completion function. This kind of topic is actually very easy to do. It does not examine any algorithms, and it is basically a basic data structure.

        1: What data structure is used to store [to-do items and their attributes]? Do you want to design a to-do list class?

        2: How to efficiently judge whether there is a to-do item on a certain date? Need a hash structure?

        3: All that remains is to implement modification and insertion of this data structure.

The core points have been written out, let's try it yourself.

[Huawei od machine test real questions Python

Guess you like

Origin blog.csdn.net/misayaaaaa/article/details/131241239