While solving the problem on Leetcode https://leetcode.com/problems/find-median-from-data-stream I came across an insertion sort approach. However, the pop quiz mentions using linear search instead of binary search. I wonder why is that, and what are the trade-offs?