Day 32 of my 365 Days LeetCode challenge 🚀
Today’s problem: 3Sum (Problem 15) using the Two Pointer approach.
🔹 Learned how to sort the array first
🔹 Fixed one element and used two pointers to find pairs
🔹 Efficiently reduced time complexity to O(n²)
🔹 Avoided duplicates for unique triplets
This problem is great for mastering:
✔️ Two Pointer Technique
✔️ Array manipulation
✔️ Optimization over brute force
Consistency + practice = better problem solving 💪
#Day32 #LeetCode #DSA #TwoPointers #3Sum #CodingChallenge #Java #ProblemSolving