Skip to content
Sharp

Core Collections · interview question

A teammate submits shaky sets code. Which review comment is the strongest?

Multiple choiceMediumchapter-3-curatedpremiumcore-collectionssets
Choose one answer
Answer and explanation

Correct answer

C. Make the rule clearer and easier to explain. Use sets when the main question is whether something has already been seen or should be unique.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Using a list for repeated membership checks adds unnecessary work and often obscures the intent.

Test yourself on Core Collections

A free test with instant, explained results. No account needed.

Start free test
All Core Collections questions →