<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://gyubster.github.io/til/feed.xml" rel="self" type="application/atom+xml" /><link href="https://gyubster.github.io/til/" rel="alternate" type="text/html" /><updated>2026-03-30T10:41:30+00:00</updated><id>https://gyubster.github.io/til/feed.xml</id><title type="html">심규보 TIL</title><subtitle>Today I Learned — 백엔드 엔지니어의 성장 기록</subtitle><entry><title type="html">Two Pointers 패턴 - 3Sum 문제 풀이</title><link href="https://gyubster.github.io/til/algorithm/2026/03/30/two-pointers-%ED%8C%A8%ED%84%B4-3sum-%EB%AC%B8%EC%A0%9C-%ED%92%80%EC%9D%B4/" rel="alternate" type="text/html" title="Two Pointers 패턴 - 3Sum 문제 풀이" /><published>2026-03-30T00:00:00+00:00</published><updated>2026-03-30T00:00:00+00:00</updated><id>https://gyubster.github.io/til/algorithm/2026/03/30/two-pointers-%ED%8C%A8%ED%84%B4---3sum-%EB%AC%B8%EC%A0%9C-%ED%92%80%EC%9D%B4</id><content type="html" xml:base="https://gyubster.github.io/til/algorithm/2026/03/30/two-pointers-%ED%8C%A8%ED%84%B4-3sum-%EB%AC%B8%EC%A0%9C-%ED%92%80%EC%9D%B4/"><![CDATA[<h2 id="오늘-배운-것">오늘 배운 것</h2>

<h3 id="two-pointers-패턴">Two Pointers 패턴</h3>

<p>LeetCode #15 3Sum 문제를 풀면서 Two Pointers 패턴을 학습했다.</p>

<h3 id="핵심-아이디어">핵심 아이디어</h3>

<ul>
  <li>배열을 정렬한 뒤, 하나의 원소를 고정하고 나머지 두 포인터를 양 끝에서 좁혀나간다</li>
  <li>시간복잡도: O(n2) - 브루트포스 O(n3) 대비 개선</li>
  <li>중복 제거가 핵심 포인트</li>
</ul>

<h3 id="느낀-점">느낀 점</h3>

<p>정렬 후 포인터를 활용하는 패턴은 다양한 문제에 적용할 수 있다.</p>]]></content><author><name></name></author><category term="algorithm" /><category term="leetcode" /><category term="two-pointers" /><category term="medium" /><summary type="html"><![CDATA[오늘 배운 것]]></summary></entry></feed>