<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Two-Pointers on Algorithms in 60 Days</title><link>https://algorithmsin60days.com/tags/two-pointers/</link><description>Recent content in Two-Pointers on Algorithms in 60 Days</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 05 Jul 2026 10:00:00 +0500</lastBuildDate><atom:link href="https://algorithmsin60days.com/tags/two-pointers/index.xml" rel="self" type="application/rss+xml"/><item><title>Two Pointer Technique: When to Use It and 6 Problems Solved</title><link>https://algorithmsin60days.com/blog/two-pointer-technique-interview/</link><pubDate>Sun, 05 Jul 2026 10:00:00 +0500</pubDate><guid>https://algorithmsin60days.com/blog/two-pointer-technique-interview/</guid><description>&lt;p&gt;Every interview prep list mentions the two pointer technique, and almost every explanation makes the same mistake: it shows you solutions without teaching you &lt;em&gt;recognition&lt;/em&gt;. You read the Two Sum II solution, nod along, and then freeze in a real interview because nobody told you what a two pointer problem &lt;em&gt;looks like&lt;/em&gt; before you know the answer.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s the framing that fixes it: &lt;strong&gt;two pointers is a technique for eliminating candidate pairs (or subarrays) without checking them&lt;/strong&gt;, the same way binary search eliminates candidates without visiting them. The brute-force approach to most pair problems checks all O(n²) pairs. Two pointers gets to O(n) by proving, at each step, that a whole batch of pairs can&amp;rsquo;t possibly be the answer.&lt;/p&gt;</description></item></channel></rss>