median of large stream. hints给了无数个, 最后套出来时间复杂度nlogn, 空间复杂度必须是1(logn)?,这题需要注意的是LARGE,最后的思路应该是二分 quickselect。对不起面试官小哥,就差答案怼我脸上了
imagine you’re an airbnb host, find largest income by arrange your reservations. 也就是 input 一串长度为二的array, 代表入住和退房时间,要求reservation time不能overlap, 求最大能accommodate的晚数,提示greedy不行