-
어떤 걸 기준으로 2개로 나뉠 때 자료구조 2개 쓸 수 있음아무거나적어~ 2023. 10. 5. 15:02
커서를 기준으로 왼쪽 오른쪽 나뉨(스텍 2개 사용)
중앙값을 기준으로 2개로 나뉨(heap 2개 사용)
'아무거나적어~' 카테고리의 다른 글
특이한 출력 부분 처리 방법 (0) 2023.11.08 [C++] max({1, 2, 3}) 이게 되네? (0) 2023.10.06 lower bound, upper_bound compare function (0) 2023.09.20 평면상에서 가장 가까운 두 점(Closest Pair of Points) (0) 2023.09.20 Harmonic number time complexity O(lg n) (0) 2023.09.14