[알고리즘] 투 포인터(Two Pointers)
·
Problem Solving/Algorithm
투 포인터란?말 그대로 두 개의 포인터(인덱스)를 이용해 배열을 탐색하는 알고리즘특히 정렬된 배열에서 선형 시간 또는 이분 탐색과 결합해 더 빠르게 처리할 수 있다는 장점이 있다.핵심 아이디어: 두 개의 포인터를 이용해 하나의 배열 또는 두 개의 배열을 동시에 탐색하며 불필요한 반복을 줄이고 시간 복잡도를 낮추는 방식! DSA Visualizations | Hello InterviewAce your software engineering coding interview with hands on, interactive lessons on data structures and algorithms. Hello Interview will help you master the most common interview qu..