lower_bound (1) 썸네일형 리스트형 [C++/Algorithm] upper_bound, lower_bound 이해하기 2021년 상반기 카카오 인턴 코딩 테스트에 응시했었는데, 당시 3번 문제에 upper_bound, lower_bound를 사용했었다. 그 당시에 조금 헤맸던 기억이 있어서 이번 기회에 한번 정리해보려 한다. 우선 c++ reference(https://www.cplusplus.com/reference/algorithm/upper_bound/)를 찾아보면 Return iterator to upper bound Returns an iterator pointing to the first element in the range [first,last) which compares greater than val. The elements are compared using operator 이전 1 다음