Question
A tagging tool lets editors attach genre tags to tracks, and the same tag can be applied many times across a library. Given the full list of applied tags (case-sensitive strings), return an alphabetically sorted list of the distinct tags that were applied more than once. Tags applied exactly once are excluded. For example, ["rock", "pop", "rock", "jazz", "pop"] yields ["pop", "rock"]. Return an empty list when nothing repeats.
repeated_tags(tags: list[str]) → list[str][["rock","pop","rock","jazz","pop"]]out["pop","rock"]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.
Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.