From 60b6262e1295a6d61a69f619e154cf72272d5bed Mon Sep 17 00:00:00 2001 From: Aditya Mishra <71931716+mshradtya@users.noreply.github.com> Date: Tue, 30 Sep 2025 22:25:49 +0530 Subject: [PATCH] Updated "Pair with Target Sum" (Two Pointers) the original "two sum" which is linked in the readme is not an ideal example for two sum, as here the input array is not sorted. hash maps will be a more appropriate pattern for this question. a better example would be "two sum - II", where the input array is sorted and two pointers approach can be directly applied. even the original grokking the coding interview has sorted array for the problem. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a96f66f..b827b02 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ### 1. Pattern: Two Pointers 1. Introduction -2. Pair with Target Sum (easy) [LeetCode](https://leetcode.com/problems/two-sum/) +2. Pair with Target Sum (medium) [LeetCode](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/) 3. Remove Duplicates (easy) [LeetCode](https://leetcode.com/problems/remove-duplicates-from-sorted-list/) [LeetCode](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/) [LeetCode](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) [LeetCode](https://leetcode.com/problems/find-the-duplicate-number/) [LeetCode](https://leetcode.com/problems/duplicate-zeros/) 4. Squaring a Sorted Array (easy) [LeetCode](https://leetcode.com/problems/squares-of-a-sorted-array/) 5. Triplet Sum to Zero (medium) [LeetCode](https://leetcode.com/problems/3sum/)