Code RoomBreached password detector
EasyPrep Room Coding #160

Breached password detector

CodingSecurityEntry–Mid~10 min

Check submitted passwords against a known-breached set. Given a list of candidate `passwords` and a `breached_set` list of passwords known to be compromised, return a list of booleans (same length and order as `passwords`) where each entry is True if that password appears in the breached set and must be rejected. An empty password list returns an empty list.

Implement
check_breached(passwords: list[str], breached_set: list[str]) → list[bool]
Examples
in[["abc","secure1","123456"],["123456","password","abc"]]out[true,false,true]
What a strong answer looks like

State your approach and its time/space complexity out loud before you optimize. Handle the edge cases (empty input, duplicates, overflow), and say why you chose this over the brute force. Green tests are the floor, not the grade.

0:00 of about 10 min
InputExpectedGot
[["abc","secure1","123456"],["123456","password","abc"]][true,false,true]not run yetsample