Code Room
CodingEasycod-g1370
Subject StringsLevel Entry–Mid~10 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

A community site awards a 'mirror pair' badge when one username is exactly the reverse of another, ignoring letter case. Given two usernames a and b (ASCII letters and digits only), return True if reversing a and comparing case-insensitively gives b, and False otherwise. For example, 'Dev' and 'VED' form a mirror pair, but 'abc' and 'abc' do not.

Implement
is_mirror_pair(a: str, b: str) → bool
Examples
in["Dev","VED"]outtrue
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.

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.

Run or narrate your approach, then ask the coach.