✅ Topics for Day 6 DSA with Java
Focus: Two Pointer Technique
🔁 1. Learn & Implement Two Pointer Technique
-
Understand how the two-pointer technique works on sorted arrays.
-
Implement the following problems:
🧠 2. Solve 2 LeetCode Problems Using Two Pointers
-
LeetCode 167. Two Sum II – Input Array Is Sorted
-
LeetCode 283. Move Zeroes
-
Optimize with minimal swaps using the two-pointer pattern.
-
✨ Bonus Challenges (Optional but Recommended)
-
LeetCode 26. Remove Duplicates from Sorted Array
-
LeetCode 844. Backspace String Compare
📊 Explore Visualization
Try two-pointer visualizations at:
👉 https://visualgo.net/en/list
🧩 Concept Summary
-
Two pointers are most useful for:
-
Sorted arrays
-
Reverse traversal
-
Sliding window (upcoming)
-
Partitioning logic
-
Comments
Post a Comment