Available question text
Given a square room of side p and a laser from the southwest corner that first hits the east wall q units up, determine which corner receptor (0, 1, or 2) the ray will hit first after reflections. Algorithmically, this reduces to finding the smallest k with k*q divisible by p (via gcd/lcm) and using the parity of the resulting vertical/horizontal multiples to identify the receptor.
Related questions
Continue with questions that share topics or the same question type.
- Find Mirror Score of a String
Coding
- Line Reflection
Coding
- Sum of k-Mirror Numbers
Coding
- Twisted Mirror Path Count
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 858. Mirror Reflection
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source