Minimum Lines to Represent a Line Chart
You are given a 2D integer array `stockPrices` where `stockPrices[i] = [dayi, pricei]` indicates the price of the stock on day `dayi`. All `dayi` are distinct.
You are given a 2D integer array `stockPrices` where `stockPrices[i] = [dayi, pricei]` indicates the price of the stock on day `dayi`. All `dayi` are distinct.