thankyouforyour@tg says to 電訊台 我記得mid term 有題:design a data structure that can peek min and max element in O(1) time, insert and pop min or max element in O(log n) time