Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 325 Bytes

README.md

File metadata and controls

6 lines (5 loc) · 325 Bytes

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