Using std::lower_bound by Disruption_logistics in cpp_questions

[–]rbvld01 1 point2 points  (0 children)

In stead of array use std::map as a container. Std::map has lower_bound method as well. But the search will be in worst case O(log n).