Code Room
CodingEasycod-g1411
Subject Two pointersLevel Entry–Mid~10 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

A training app checks whether a workout was perfectly mirrored: the heart-rate samples during the cool-down should retrace the warm-up exactly, so the whole session reads the same forwards and backwards. Given the list rates, return True if it is symmetric (a palindrome of values) and False otherwise. Compare from both ends inward instead of building a reversed copy. Example: [90, 110, 130, 110, 90] is symmetric.

Implement
is_mirrored_session(rates: list[int]) → bool
Examples
in[[90,110,130,110,90]]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.