📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    You are building a system that needs to process tasks in

    order of their priority. Which data structure would be most appropriate?
    A Stack Correct Answer Incorrect Answer
    B Queue Correct Answer Incorrect Answer
    C Hash Map Correct Answer Incorrect Answer
    D Priority Queue Correct Answer Incorrect Answer
    E Binary Search Tree Correct Answer Incorrect Answer

    Solution

    A Priority Queue is specifically designed to store elements with associated priorities and allows efficient retrieval of the element with the highest (or lowest) priority.

    Practice Next
    ask-question