Minimum Absolute Distance Between Mirror Pairs

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(n log C) ⏱️

Space Complexity

O(n) 💾