shivam Jeet’s Post

Day 24 / 100 ✅ 🧠 Today’s focus: LeetCode 234 – Palindrome Linked List Instead of just coding it, I paid attention to the pattern behind it. 🔍 What the problem checks: Can we verify if a linked list reads the same forward and backward? ⚙️ My approach: • Traverse the list and store values in a vector • Use two pointers (start & end) • Compare elements until they meet Simple idea. Clear logic. Accepted successfully. 💡 Key takeaway: Even when a problem can be optimized further (O(1) space using reverse technique), understanding the basic comparison approach strengthens fundamentals first. Not every day needs a complex algorithm. Some days are about reinforcing patterns. 24 days in. Still building discipline. 🚀 #100DaysOfCode #LeetCode #DSA #LinkedList #ProblemSolving #CPlusPlus #Regexsoftware

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories