I am confused about: Smallest Number Range (Hard) - Grokking the Coding Interview: Patterns for Coding Questions
"Given ‘M’ sorted arrays, find the smallest range that includes at least one number from each of the ‘M’ lists.
Input: L1=[1, 5, 8], L2=[4, 12], L3=[7, 8, 10]Output: [4, 7]Explanation: The range [4, 7] includes 5 from L1, 4 from L2 and 7 from L3.
```"
I am confused why the range is [4,7]. Why not [5,7] (5 from L1 7 from L3 still within the range in L2) or even [8,8] as those also are within the ranges of all three arrays.
What am I missing?
----
Course: https://www.educative.io/courses/grokking-the-coding-interview
Lesson: https://www.educative.io/courses/grokking-the-coding-interview/JPGWDNRx3w2