---
title: "Discussion on \"lower_bound 와 upper_bound\" | Hashnode"
description: "Discussion on \"lower_bound 와 upper_bound\". lower_bound 와 upper_bound 란?\n\n이진탐색(Binary Search)기반의 탐색 방법이다.\n\n배열 또는 리스트가 정렬되어 있어야 한다.\n\nc++ 에서는 map과 vector 에서의 알고리즘 사용법이 다르다.\n\n\n\nlower_bound\n\n용도 - 찾으려는 key 값보다 크거나 같은 값이 배열 몇 번째에서 처음 등장하는지  찾기 위함\n\n사용법 - lower_bound( vector.begin(), vector.end(), key..."
url: "https://hashnode.com/posts/lowerbound-upperbound/64efedfe628f15c633ef974f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [lower\_bound 와 upper\_bound](https://ybe-teamcook7.hashnode.dev/lowerbound-upperbound?utm_source=hashnode&utm_medium=feed)

lower\_bound 와 upper\_bound 란? 이진탐색(Binary Search)기반의 탐색 방법이다. 배열 또는 리스트가 정렬되어 있어야 한다. c++ 에서는 map과 vector 에서의 알고리즘 사용법이 다르다. lower\_bound 용도 - 찾으려는 key 값보다 크거나 같은 값이 배열 몇 번째에서 처음 등장하는지 찾기 위함 사용법 - lower\_bound( vector.begin(), vector.end(), key...

Aug 31, 2023 · 1 min read · ybe-teamcook7.hashnode.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Yonghyun Hong](https://hashnode.com/@HongYonghyun)

@HongYonghyun

  
[View profile](https://hashnode.com/@HongYonghyun)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
