Day 183: Making Progress with Linked Lists I am on Day 183 of my coding journey. Today, I solved 3 more problems using Linked Lists. Here is what I learned in simple words: 1. Odd Even Linked List (LeetCode 328) I learned how to group nodes together. I put all nodes at odd positions first, and then all nodes at even positions. It is like re-arranging a line of people based on their number. 2. Add Two Numbers (LeetCode 2) I added two numbers where each digit is a node in a list. The most important part was learning how to handle the "carry" (like when $8 + 5 = 13$, you keep 3 and carry over the 1). 3. Merge Two Sorted Lists (LeetCode 21) I took two sorted lists and joined them into one big sorted list. I used a "Dummy Node" at the start. This trick made my code much shorter and easier to write. Key Lesson: In Linked Lists, you don't need to move the data. You just change where the "next" pointer points. It's like changing the signs on a road! #JavaScript #Coding #WebDev #Learning #Software #Programming #Logic #SimpleCode #DataStructures #Algorithms #Tech #Career #Success #Engineer #DailyCode #LinkedIndev
Linked Lists Mastery: Day 183 Progress
More Relevant Posts
-
Day 196 of my coding journey. Today I worked on four LeetCode problems to improve my search logic. In LeetCode 34 I learned how to find the first and last position of a target number. I used binary search twice to find the start and end boundaries. This is much faster than checking every number in the list. In LeetCode 852 I found the peak index in a mountain array. By comparing middle elements with their neighbors I could see if the values were increasing or decreasing. This helped me find the top of the mountain quickly. In LeetCode 540 I found a single element in a sorted array where every other number has a pair. I used the count of elements on each side to decide where the single number is hidden. If the count is even or odd it tells me which way to search. In LeetCode 658 I found the K closest elements to a specific value. This taught me how to use binary search to find the best starting point for a range of numbers. It is a very clever way to pick a slice of an array. Binary search is not just for finding a number. It is also great for finding boundaries and specific patterns in data. #DSAinJavaScript #365daysOfCoding #JavaScriptLogic #LeetCode #CodingJourney #SoftwareEngineering #BinarySearch #ProblemSolving #Algorithms #TechLearning #JavaScriptDeveloper #DailyCoding #ProgrammingLife #WebDev #LogicBuilding #AlgorithmDesign #CodeOptimization #ComputerScience #JSProgramming #DeveloperCommunity #ProgrammingLogic #DataStructures
To view or add a comment, sign in
-
🔸 I recently started doing LeetCode again and have solved around 400 problems using JavaScript, across topics like dynamic programming, greedy, trees, graphs, recursion, arrays, and more I have done DSA before, but this time, something clicked. I realised that problem-solving becomes much easier once you start recognising the underlying patterns. The questions may still be difficult to code, but you’re no longer confused about what the problem actually wants from you. And that clarity changes everything. Instead of feeling stuck or overwhelmed, your mind starts breaking problems down naturally. You focus on constraints, edge cases, and trade-offs rather than panicking over the solution. That’s when you understand that real growth doesn’t come from memorising answers. It comes from training your brain to think in patterns Stay consistent Trust the process The “click” will come Pic Credit: AlgoMaster.io page #dsa #leetcode #javsacript #programming #technology #softwaredevelopment #competitiveprogramming #ig
To view or add a comment, sign in
-
-
Stop fighting with messy project structures! We've all been there: You want to share your project architecture in a README, a Slack message, or documentation, but your file tree is buried under 1,000+ files from node_modules, .git, or .next. I tried other extensions, but they were always missing something—either they didn't have a copy button, or they forced me to manually hide junk folders every single time I opened them. So, I built "Clean Tree." It is a must-have for your VS Code workflow. Why you will love Clean Tree: • One-Click Copy: Just click "Copy" and get a perfectly formatted tree in your clipboard. • Junk-Free Views: Automatically hides all that dependency clutter (node_modules, venv, etc.) so people can see your actual code. • It Remembers You: It saves your settings! If you like icons ON and hidden files OFF, it stays that way every time. • Huge Icon Support: Whether you are in Python, Java, Rust, or React, it looks professional with a massive icon library. Get it on the Marketplace: https://lnkd.in/dbGaMS6N Star it on GitHub: https://lnkd.in/dVNqskwM No more messy screenshots of your sidebar. Just clean, professional trees in seconds. Give it an install and let me know what you think. Happy coding! #VSCode #DeveloperTools #Programming #WebDev #OpenSource #Efficiency #CleanTree #SoftwareEngineering
To view or add a comment, sign in
-
😂 𝗣𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 𝗶𝗻 𝘁𝘄𝗼 𝗲𝗿𝗮𝘀, 𝘀𝗮𝗺𝗲 𝗽𝗿𝗼𝗯𝗹𝗲𝗺: 𝗼𝘃𝗲𝗿𝗰𝗼𝗺𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗻𝗴 𝘀𝗶𝗺𝗽𝗹𝗲 𝗹𝗼𝗴𝗶𝗰 2020: solve a basic odd/even check with a giant chain of if statements 😅 2026: wrap a tiny problem in an unnecessary abstraction / helper call 📦💀 Different style… same issue: using too much for something simple. Real lesson (and it matters) 👇 Good programming is not about writing more code. It’s not about using more libraries either. It’s about: ✅ knowing the simplest correct solution ✅ understanding built-in language features ✅ using libraries when they solve a real problem (not a 1-line one) ✅ keeping code readable, testable, and easy to maintain Libraries are powerful. 🛠️ But engineering judgment is knowing when not to add one. Sometimes the best code is: ◆ smaller ◆ boring ◆ obvious ◆ and done ✅ 💾 Save this for later 🔁 Repost if this is too real 😅 ➕ Follow Rahul Choudhary for more dev humor + practical tips w3schools.com JavaScript Mastery #Programming #SoftwareEngineering #DeveloperHumor #CleanCode #JavaScript #Coding #ProblemSolving #DeveloperMindset #WebDevelopment
To view or add a comment, sign in
-
-
😂 𝗣𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 𝗶𝗻 𝘁𝘄𝗼 𝗲𝗿𝗮𝘀, 𝘀𝗮𝗺𝗲 𝗽𝗿𝗼𝗯𝗹𝗲𝗺: 𝗼𝘃𝗲𝗿𝗰𝗼𝗺𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗻𝗴 𝘀𝗶𝗺𝗽𝗹𝗲 𝗹𝗼𝗴𝗶𝗰 2020: solve a basic odd/even check with a giant chain of if statements 😅 2026: wrap a tiny problem in an unnecessary abstraction / helper call 📦💀 Different style… same issue: using too much for something simple. Real lesson (and it matters) 👇 Good programming is not about writing more code. It’s not about using more libraries either. It’s about: ✅ knowing the simplest correct solution ✅ understanding built-in language features ✅ using libraries when they solve a real problem (not a 1-line one) ✅ keeping code readable, testable, and easy to maintain Libraries are powerful. 🛠️ But engineering judgment is knowing when not to add one. Sometimes the best code is: ◆ smaller ◆ boring ◆ obvious ◆ and done ✅ #Programming #SoftwareEngineering #DeveloperHumor #CleanCode #JavaScript #Coding #ProblemSolving #DeveloperMindset #WebDevelopment
To view or add a comment, sign in
-
-
🚀 DSA Practice — A Realization I’ve solved 43 problems on LeetCode so far (31 Easy, 12 Medium) 💻 While practicing, I realized something important — problem solving is not about streaks, badges, or increasing numbers. There were days when I focused more on maintaining the streak than truly understanding the problem. That’s when I understood I was tracking numbers, not growth 📊 But during this process, I learned something valuable. Before jumping into code, the first step is to understand the question deeply. Break it down. Think about the logic. Try solving it roughly on paper. Only then write the code. Code is the final step — not the first. I also started understanding how to decide which approach to use — whether it involves sliding window, two pointers, prefix sum or another pattern. From here, consistency is not about maintaining a streak — it’s about building real problem-solving ability. One problem. Full understanding. Every day. 🔁 #DSA #LeetCode #Java #ProblemSolving #PlacementPreparation
To view or add a comment, sign in
-
-
Introducing Smart Code Assistant (SCA) CLI – Your Offline Coding Companion As developers, we often switch between coding IDEs and browsers to look up solutions, which research shows can cause up to 30% loss of attention. Notifications and internet distractions make it even worse, eating into our precious coding time. To solve this, our team developed Smart Code Assistant (SCA) – a fully offline CLI tool that helps you test, debug, optimize, and understand your code without ever leaving your IDE. ⚡ Key Features Explain Code: Generates clear explanations of your code directly in your project directory. Debug: Identifies and fixes errors efficiently. Optimize: Suggests better approaches to improve your code. Test: Creates edge test cases to ensure your code is robust. 🛠 How It Works Install Ollama 3.2:1B model on your PC - https://lnkd.in/gMdtwFkM Install our package in your project directory - https://lnkd.in/gZaCXvbf Run commands like: sca test <file_name> sca debug <file_name> sca optimize <file_name> sca explain <file_name> All outputs are generated locally, so there’s no distraction from internet tabs or notifications. Core Contributors: Deepak Kambala and Akhil Siva Chowdary Nandigam Other Contributors: Vinay sai pavan Banduchode, Lourdhu Mounika Nare and Akhila Mokkapati 🔗 Check it out on PyPI: https://lnkd.in/gZaCXvbf 💡 Stay focused, code smarter, and keep distractions away!
To view or add a comment, sign in
-
✳️Day 17 of #100DaysOfCode✳️ Solving the Longest Common Subsequence Problem! 🚀 I recently took on the "Longest Common Subsequence" (LCS) challenge on LeetCode—a classic problem that perfectly illustrates the power of Dynamic Programming. Here’s the step-by-step approach I took: ✅ 1. Problem Decomposition: I broke the problem down into smaller sub-problems. If the last characters of two strings match, they contribute to the subsequence; if not, we explore the possibilities by skipping a character from either string. ✅ 2. Recursive Foundation: I started by defining the base case—if either string is empty, the LCS length is 0. ✅ 3. Optimization with Memoization: Pure recursion leads to redundant calculations (overlapping sub-problems). I implemented a 2D array (dp[n][m]) to store results of previously computed states, significantly boosting performance. ✅ 4. Refinement: Fine-tuning the logic to ensure the time and space complexity were balanced for an efficient "Accepted" result . Always learning, always coding. On to the next challenge! 💻 #LeetCode #Java #DynamicProgramming #CodingLife #SoftwareEngineering #ProblemSolving
To view or add a comment, sign in
-
-
When I first started programming, I thought variables were just containers. Now I see them differently. They are communication. The first rule of declaring a variable is simple: it must be intent-revealing. A variable name should tell you why it exists, not just what it stores. If someone reads your code months later (or if you read your own code after a long break), they should understand it without decoding cryptic shortcuts. According to Clean Code principles popularized by Robert C. Martin, meaningful names reduce cognitive load and make software easier to maintain. Research from organizations like IEEE also emphasizes readability as a key factor in software quality and long-term maintainability. Intent-revealing names help with: • Code readability • Maintainability • Faster onboarding of new developers • Reduced bugs caused by misunderstanding • Cleaner architecture in the long run In professional environments — whether you’re working with ASP.NET, React, Entity Framework, or any modern stack — clarity beats cleverness every time. Good code is not written for the compiler. It’s written for humans. If you’re serious about becoming a better developer, start with your variable names. #SoftwareDevelopment #CleanCode #Programming #CodeQuality #DotNet #WebDevelopment #BestPractices #Developers #CodingLife #TechLeadership
To view or add a comment, sign in
-
Another Day, Another Level Up! 💻 Today’s live coding session was packed with amazing concepts! I learned how to make my code cleaner, smarter, and more efficient. Here is a quick summary of what I learned today: Classes & Error Handling: Mastered the basics of classes and how to handle errors properly so the app doesn't crash. 🛠️ Promises: Learned how to manage tasks that take time (Asynchronous JS) using Promises. ⏳ Symbols: Explored this unique data type and how it helps in creating private-like properties. 🔑 Iterables with Symbols: Used Symbol.iterator to make objects behave like arrays so we can loop through them! 🔄 Overwriting Functions: Learned how to use Symbols to overwrite or customize default function behaviors in objects. ✍️ Feeling more confident with JavaScript every day. Step by step, I'm getting closer to becoming a better developer! 💪 Hitesh Choudhary, Piyush Garg, Chai Aur Code, Akash Kadlag, Jay Kadlag #JavaScript #WebDevelopment #CodingJourney #LearningEveryDay #MERNStack #Programming
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