MugUp logoMugUp
HomeBrowseAboutBlog
LoginSign Up
MugUp

Plan your day, study, read, write and track your habits in one app.

Follow MugUp

Product

  • Features
  • Compare
  • Free Tools
  • Deck Library
  • MugUp for Discord

Community

  • Blog
  • Changelog
  • Feature Requests
  • Deck Requests

Company

  • Home
  • About
  • Contact

© 2026 MugUp. All rights reserved.

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
1Sign in to add this deckTry itSign in to clone

Add it to your projects to study it here with your progress saved. Try it plays a round and saves nothing. Clone makes your own copy that you can change.

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.

Try this 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. What is the time complexity of: for i from 0 to n, for j from 0 to i, do O(1) work?

    • O(n log n)
    • O(n squared)
    • O(n)
    • O(n cubed)
  2. 2. A loop starts at i = 1 and runs while i times i is at most n, adding 1 to i each time. What does it cost?

    • O(n), once per value
    • O(cube root of n)
    • O(log n), by halving
    • O(square root of n)
  3. 3. You loop once over array A of size n, then once over a separate array B of size m. What is the total cost?

    • O(n + m)
    • O(n times m)
    • O(n), since m is ignored
    • O(m squared)
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
Bloom filter↔False positives possible, false negatives never
Skip list↔Stacked linked lists with expected O(log n) search
Bitset↔One bit per possible value, very compact membership
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. In a 0-indexed binary heap stored in an array, the children of index i sit at 2i + 1 and ___.

    Answer:2i + 2also: 2i+2, 2*i+2

    Hint: One after the left child

  2. 2. The recurrence T(n) = 2T(n/2) + O(n) solves to O(n log n), which the ___ theorem gives you directly.

    Answer:master

    Hint: A general rule for divide-and-conquer recurrences

  3. 3. ___ notation gives a tight bound: the function is bounded above and below by the same growth rate.

    Answer:Big-Thetaalso: Theta, big theta

    Hint: A Greek letter

5 more questions in this game

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

Sign up freeLog in