MugUp logoMugUp
HomeBrowsePricingAboutBlogContact
LoginSign Up
© 2026 MugUp. All rights reserved.
HomeAboutDeck LibraryBlogChangelogContactFeature RequestsDeck Requests
Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. Coding Interview Prep
  3. Big-O & Data Structures
Public deck

Coding Interview Prep

Data structures, algorithms, system design, and behavioral prep.

Career
AShared by Alex Chen
1PlaySign in to clone

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

Big-O & Data Structures

Time/space complexity and when to reach for each structure.

Play topicBack to deck

Content

46 total questions

MCQ: 11
Fill-in: 8
Flashcards: 15
Pair match: 12
Big-O & Data Structures – Flashcards
Flashcards

Card #1

Time to access an array element by index?

Card #2

Average search time in a balanced BST?

Card #3

Search time in an unsorted array?

12 more questions in this game

Showing 3 of 15. Sign up free to see the rest.

Sign up freeLog in
Big-O & Data Structures – MCQ
Multiple Choice Questions
  1. 1. Average-case time to insert into a hash table?

    • O(1)
    • O(log n)
    • O(n)
    • O(n log n)
  2. 2. Which structure gives O(1) enqueue and dequeue?

    • Queue (linked-list backed)
    • Sorted array
    • Binary search tree
    • Min-heap
  3. 3. The best general-purpose comparison sort runs in:

    • O(n log n)
    • O(n)
    • O(log n)
    • O(n²)
8 more questions in this game

Showing 3 of 11. Sign up free to see the rest.

Sign up freeLog in
Big-O & Data Structures – Pair match
Pair Match
Hash table↔O(1) average lookup by key
Balanced BST↔O(log n) ordered search
Heap (priority queue)↔O(log n) insert, O(1) peek min/max
9 more questions in this game

Showing 3 of 12. Sign up free to see the rest.

Sign up freeLog in
Big-O & Data Structures – Fill-in-the-blank
Fill in the Blank
  1. 1. Mergesort runs in O(n log n) in every case, but requires O(___) auxiliary space.

    Answer:n

    Hint: Proportional to the input size

  2. 2. A sort that preserves the relative order of equal elements is described as ___.

    Answer:stable

    Hint: Equal elements do not move past each other

  3. 3. Building a heap from n unsorted elements takes O(___) time.

    Answer:n

    Hint: Cheaper than the n log n most people guess

5 more questions in this game

Showing 3 of 8. Sign up free to see the rest.

Sign up freeLog in