Lesson 12 of 15
20. Probabilistic Data Structures

Interview questions

6 min read+10 XP

Interview questions (with the counter-questions you'll get)

Q1. What is a Bloom filter, and when would you use one?

They're testing: the most-asked probabilistic structure.

Think about your answer first, then open it.

reveal

Q2. Can you delete from a Bloom filter?

They're testing: depth beyond the basics.

Think about your answer first, then open it.

reveal

Q3. How would you count unique visitors per day for a site with millions of users?

They're testing: HyperLogLog and its trade-off.

Think about your answer first, then open it.

reveal

Q4. Explain how HyperLogLog works.

They're testing: the intuition.

Think about your answer first, then open it.

reveal

Q5. What is a count-min sketch?

They're testing: frequency estimation.

Think about your answer first, then open it.

reveal

Q6. Design trending hashtags or trending searches.

They're testing: applying top-K in a system.

Think about your answer first, then open it.

reveal

Q7. How do LSM-tree databases use Bloom filters?

They're testing: linking to storage internals.

Think about your answer first, then open it.

reveal

Q8. Your Bloom filter's false-positive rate in production is 40%, not 1%. Why?

They're testing: operational understanding.

Think about your answer first, then open it.

reveal

Q9. When should you not use a probabilistic structure?

They're testing: judgement.

Think about your answer first, then open it.

reveal

Q10. How would a web crawler avoid re-crawling the same URLs, at billions of URLs?

They're testing: a classic application.

Think about your answer first, then open it.

reveal