Day 100/100 – DSA Challenge 🚀 Topic: Two Pointer Key Learning: Over the past 100 days, I stayed consistent, solved problems, and strengthened my understanding of Data Structures & Algorithms Learned from #100DaysOfDSA is Consistency > Motivation , just be consistent In the world of competition, be the competition Small progress every day builds strong problem-solving skills Thanks to everyone who supported during this journey 🙏♥️ What is Two Pointer Technique? It’s an optimized approach where we use two indices (pointers) to traverse data efficiently instead of using nested loops. Types of Two Pointer Patterns 1. Opposite Direction: One pointer at start, one at end Used in: Pair Sum, Palindrome 2 Same Direction (Slow & Fast): Both pointers move forward Used in: Remove duplicates, partitioning #100DaysOfCode #DSA #Coding #ProblemSolving #TwoPointer #Consistency #Learning #Pro GitHub: <https://lnkd.in/dtek96E3> #100DaysOfDSA #ProblemSolving #LinkedInLearning #clanguage #coding #programming #developer #softwareengnieer #datastructure #spu
Two Pointer Technique for Efficient Problem Solving
More Relevant Posts
-
Why Data Structures Matter in Programming 💡 Data Structures are not just a subject—they are the backbone of efficient programming. Here’s why they are important: 🔹 Improve performance – Choosing the right structure (Array, Linked List, Stack, Queue) can reduce time complexity 🔹 Better problem-solving – Helps in writing optimized and scalable code 🔹 Real-world applications – Used in search engines, databases, and operating systems Example: A simple search in an unsorted list takes O(n), but with proper structures like trees or hash tables, it becomes much faster. 👉 Learning DSA is not about memorizing—it’s about understanding how to think logically. #DataStructures #Programming #Coding #ComputerScience #Learning
To view or add a comment, sign in
-
Mastering the Basics: Linked List in Data Structures Understanding how data is organized is key to becoming a great developer. A Linked List is one of the most fundamental concepts in Data Structures that teaches dynamic memory handling and efficient data flow. Key Takeaways: Each node contains data + pointer to the next node Elements are not stored in contiguous memory Efficient for insertions and deletions compared to arrays Ends with a NULL pointer, marking the end of the list Grasping concepts like Linked Lists builds the foundation for advanced topics and real-world problem solving. #DataStructures #LinkedList #DSA #Programming #Coding #SoftwareEngineering #TechLearning #Developers #ComputerScience #CodingJourney #LearnToCode #TechSkil
To view or add a comment, sign in
-
-
🚀 Linked List Series – Insertion in Middle Continuing my journey in Data Structures, today I worked on Insertion in the Middle of a Linked List. Insertion in the middle means adding a new node at a specific position between existing nodes. This requires proper traversal and careful handling of pointers. 🔹 Key Concepts: ✔ Create a new node ✔ Traverse to the desired position ✔ Adjust pointers of previous node ✔ Link new node with next node This operation helps in understanding pointer manipulation and dynamic memory management in a better way. 💡 Step by step learning, getting better every day! #DataStructures #LinkedList #CodingJourney #BCA #Programming #Learning
To view or add a comment, sign in
-
Why are you confused about DSA? Too many resources, no clear direction — that’s where most beginners get stuck. Here is the complete roadmap for DSA (Data Structures & Algorithms). This covers everything you actually need: • Core fundamentals • Key data structures • Must-know algorithms • Important coding patterns & shortcuts Stop jumping between random tutorials — follow a structured path and stay consistent. For more information related to this, feel free to DM. For suggestions or queries: gitecgo.info@gmail.com #DSA #Coding #Programming #SoftwareEngineering #TechCareers #ProblemSolving #Gitecgo
To view or add a comment, sign in
-
-
Day 91/100 – DSA Challenge 🚀 Topic: Bits Key Learning: Bit manipulation is one of the most powerful and efficient techniques in programming. It allows us to perform operations at the binary level, making our code faster and optimized. What is a Bit? A bit (binary digit) is the smallest unit of data, represented as 0 or 1. Core Bitwise Operators: AND (&) → 1 only if both bits are 1 OR (|) → 1 if at least one bit is 1 XOR (^) → 1 if bits are different NOT (~) → flips bits Left Shift (<<) → multiplies by 2 Right Shift (>>) → divides by 2 GitHub: <https://lnkd.in/dtek96E3> #100DaysOfDSA #ProblemSolving #LinkedInLearning #clanguage #coding #programming #developer #softwareengnieer #datastructure
To view or add a comment, sign in
-
-
Hello Everyone!! 💻 LeetCode #2033 — Minimum Operations to Make a Uni-Value Grid At first, I thought: 👉 Try all possible values 👉 Calculate operations Then I realized something important 👇 🔍 You can only add/subtract by x 👉 So all values must have same remainder Otherwise → impossible ❌ 💡 Game-changing insight: 👉 The best target value is the median Because: 👉 Median minimizes total distance ⚙️ Final Approach: Flatten grid Find median Count operations ⚡ Clean + optimal solution 🧠 Big Lesson: Sometimes the hardest problems… 👉 Are just applications of simple math 🔥 Don’t overcomplicate. Recognize patterns. Have you ever solved a problem using median like this? 🤔 #LeetCode #DSA #Algorithms #Programming #ProblemSolving #Math #Developers #CodingJourney
To view or add a comment, sign in
-
-
Learning with algorithms365 ✨ Just Learned Recursion – A Game Changer in Problem Solving! ✨ Today I explored one of the most important concepts in programming – Recursion. Recursion is all about a function calling itself until it reaches a stopping condition (base case). Understanding the difference between base case and recursive case really helped me visualize how problems break down into smaller subproblems. 📌 What I learned: • How recursion works internally using the stack • Difference between iterative (loops) and recursive approaches • Solving problems like printing numbers, sum of n natural numbers, and factorial • Tracing recursion using tree diagrams for better understanding One key takeaway: 👉 “Think smaller, solve smaller – recursion will handle the rest.” This concept initially felt tricky, but once I started tracing step-by-step, everything made sense! Excited to apply recursion in DSA problems and improve my problem-solving skills 🚀 Thank you Santosh Magadum for giving great insight about Recursion Thank you Mahesh Arali and algorithms365 for great mentorship #Recursion #DataStructures #Java #Programming #CodingJourney #Learning #ProblemSolving #DSA #ComputerScience
To view or add a comment, sign in
-
Day 68 on LeetCode Guess Number Higher or Lower 🎯✅ Today’s problem reinforced the power of Binary Search on an answer space. 🔹 Approach Used in My Solution The goal was to identify a hidden number using the provided guess() API. Key idea in the solution: • Apply binary search between 1 and n • Pick mid and call guess(mid) • Based on the response: – 0 → correct number found – -1 → guessed number is too high → move left – 1 → guessed number is too low → move right • Continue narrowing the search space until the number is found This is a perfect example of searching efficiently using feedback. ⚡ Complexity: • Time Complexity: O(log n) • Space Complexity: O(1) 💡 Key Takeaways: • Strengthened understanding of binary search with external APIs • Learned how to adjust search space based on feedback • Reinforced the concept of searching on answer space 🔥 Another solid step in mastering binary search patterns! #LeetCode #DSA #Algorithms #DataStructures #BinarySearch #DivideAndConquer #ProblemSolving #Coding #Programming #Cpp #STL #SoftwareEngineering #ComputerScience #CodingPractice #DeveloperLife #TechJourney #CodingDaily #100DaysOfCode #BuildInPublic #AlgorithmPractice #CodingSkills #Developers #TechCommunity #SoftwareDeveloper #EngineeringJourney
To view or add a comment, sign in
-
-
3 things I wish I knew before starting DSA Data Structures and Algorithms can feel like a mountain that keeps getting taller as you climb. Looking back, there are three truths I wish I’d embraced on Day 1: 1️⃣ It’s slow. You aren't going to master Dynamic Programming in a weekend. Progress is measured in months, not days. It’s okay if a single LeetCode "Medium" takes you three hours at first. That’s not failure; that’s the process. 2️⃣ It’s frustrating. You will hit walls. You will write code that passes 48/49 test cases and spend an hour finding the one edge case you missed. The "Aha!" moment only comes after the "I have no idea what I’m doing" phase. 3️⃣ It works if you persist. Pattern recognition is a muscle. The more you show up, the more the "magic" starts to look like logic. Consistency beats intensity every single time. If you’re currently in the middle of the grind and feel like you’re not moving fast enough: keep going. The compounding effect of daily practice is real. #SoftwareEngineering #DSA #CodingLife #CareerGrowth #Programming
To view or add a comment, sign in
-
“Why does this traversal not need a stack?” 🧠 Morris Traversal (Inorder) A way to traverse a binary tree using O(1) space. No recursion. No stack. Just smart use of pointers. ⚡ How it works: → If left is NULL → visit, go right → If left exists → find inorder predecessor → Create a temporary link (predecessor → current) → Move left → On return → remove link, visit, go right 💡 Core idea: We don’t use extra space… we reuse NULL pointers as a return path. 🎯 Conclusion: • Same traversal • Zero extra space • Deeper understanding of trees Took me a few dry runs to really get it. Did this concept click for you instantly or after struggle? 👀 #DataStructures #Algorithms #BinaryTree #CodingInterview #SoftwareEngineering #LearnInPublic #ProblemSolving #DeveloperJourney #TechLearning #CodingJourney #DSA #CodeNewbie #Programming #ComputerScience #Coding
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development