All quizzes
Free quiz · 50 questions in the bank

Algorithms quiz

Test your Algorithms knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

Two algorithms both have time complexity `O(n)`. Which statement is most useful in practice?

Questions in this quiz
  1. Two algorithms both have time complexity `O(n)`. Which statement is most useful in practice?
  2. Brute force is best described as:
  3. The "two pointers" technique typically applies when:
  4. The time-vs-space tradeoff means:
  5. Using a hash set/map to speed up lookups changes a "find pair" loop's complexity from:
  6. A greedy algorithm:
  7. What is a "tradeoff" you typically make when picking quicksort over merge sort for general-purpose sorting?
  8. What is a loop invariant?
  9. What is the difference between best-case, average-case, and worst-case complexity?
  10. The "sliding window" technique is most useful for:
  11. What does it mean for a sorting algorithm to be "stable"?
  12. What is the worst-case time complexity of bubble sort?
Gaps to close?
Read the curated Algorithms notes — core concepts, patterns, interview prep.
Algorithms notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web