ЁЯУв Too many exams? DonтАЩt know which one suits you best? Book Your Free Expert ЁЯСЙ call Now!


    Question

    Priority Queue allows access to elements based on

    priority rather than order.
    A O(1) Correct Answer Incorrect Answer
    B O(n) Correct Answer Incorrect Answer
    C O(log n) Correct Answer Incorrect Answer
    D O(n log n) Correct Answer Incorrect Answer
    E O(n┬▓) Correct Answer Incorrect Answer

    Solution

    Direct index access in arrays takes constant time.

    Practice Next
    More Data Structure Questions
    ask-question