My Calendar I 我的日程安排表 I Solution use tree-map to find the lower bound item then check item.value <= start use tree-map to find the higher key then check key >= end put key:start,value:end into tree-map