c++에서는 binary search를 직접 구현하지 않아도 된다. binary_search() 함수 사용법을 알아보자. 아래 사진은 binary_search() 함수의 정의이며 3개의 매개변수에 맞는 인수들을 넣어 주면 된다. 벡터에서 원하는값 x를 찾아주고 싶으
Two Pointer
그냥 bfs로 풀었는데 3번 테스트 케이스를 보고 생각해보니 당연히 DFS 문제였다. bfs 풀이.