🚀 Day 74 of #100daysofcode Learning Through Logic: Decode Ways Today I worked on Decode Ways (LeetCode 91), and instead of relying on advanced concepts, I focused on solving it using basic logic and step-by-step thinking. At first, the problem seems straightforward — mapping numbers to letters (1 → A, …, 26 → Z). But once you start solving it, you realize that the same string can be interpreted in multiple valid ways depending on how you group the digits. 💭 How I approached it: I broke the problem into small checks while moving through the string: * Check if the current digit can be used alone * Check if the current digit and previous digit together form a valid number (10 to 26) * Keep updating the count based on valid possibilities I didn’t overcomplicate the solution — just focused on clear logic and careful conditions. ⚠️ Challenges I faced: * Handling '0' correctly (it cannot stand alone) * Differentiating between valid cases like "10" / "20" and invalid ones like "06" * Making sure all edge cases are covered without breaking the flow 🧠 What I learned today: * Strong fundamentals can solve complex problems * You don’t always need advanced techniques — clarity of thought is more important * Breaking problems into small conditions makes them easier to handle * Edge cases are where most mistakes happen ⚙️ Efficiency: * ⏱ Time Complexity: O(n) * 📦 Space Complexity: O(1) 💡 Big takeaway: 👉 “Good problem solving is not about using complex methods — it’s about understanding the problem deeply and building the right logic.” This journey is helping me become more confident in tackling problems step by step, and that confidence is what really matters in the long run. Let’s keep showing up every day 💪 #Day74 #100DaysOfCode #LeetCode #DSA #ProblemSolving #CodingJourney #Consistency #Programming #CPlusPlus #SoftwareEngineer #PlacementPreparation #TechJobs #CareerGrowth #DeveloperMindset #CodeEveryday
Decode Ways LeetCode 91 Basic Logic
More Relevant Posts
-
🚀Day 55 of #100DaysOfCode Today’s challenge was one of those problems that looks easy… until you try to scale it. 📌 Problem Solved: Group Anagrams (LeetCode 49) At first, it felt like a straightforward string problem — just compare characters and group similar words. But as I went deeper, I realized this problem is actually about thinking efficiently, not just correctly. 💡 My Approach (Brute Force First): I started with a basic idea: * Compare each string with every other string * Check if they are anagrams by sorting * Group them accordingly ✔️ It worked. ❌ But it wasn’t efficient. Time Complexity? 👉 O(n² * k log k) And that’s where the real learning kicked in. 🧠 Key Realizations: This problem taught me something important: 👉 Solving a problem is just Step 1 👉 Optimizing it is where real growth happens I understood that: * Sorting helps identify anagrams * But repeating it again and again is costly * There must be a smarter way… And that’s when I discovered the power of: ⚡ Hashing (unordered_map) 🔥 Better Approach (What I’ll implement next): * Convert each string into a sorted version * Use it as a key in a hashmap * Store all anagrams under the same key This reduces complexity drastically to: ✅ O(n * k log k) 💻 What I’m improving daily: * Writing cleaner C++ code * Understanding time & space trade-offs * Building problem-solving intuition * Thinking beyond brute force ✨ Biggest Lesson of the Day: > “Good programmers solve problems. > Great programmers optimize them.” Consistency is slowly turning confusion into clarity. Some days are hard. Some problems take hours. But showing up every day? That’s the real win. 💯 🎯 Goal for Day 56: Implement the optimized solution using hashmap + improve time complexity. If you’re also grinding DSA or preparing for tech roles, let’s connect 🤝 We grow faster together 🚀 #Day55 #100DaysOfCode #LeetCode #DSA #CodingJourney #ProblemSolving #Programming #CPlusPlus #SoftwareEngineering #TechCareers #Developers #WomenWhoCode #WomenInTech #CodeNewbie #CodingLife #LearnToCode #CareerGrowth #TechSkills #DataStructures #Algorithms #Consistency #KeepCoding #PlacementPreparation #CodingDaily #FutureEngineer
To view or add a comment, sign in
-
-
🚀 Day 54 of #100DaysOfCode Not every day in coding is about writing the most optimal solution… Some days are about slowing down and truly understanding what’s happening behind the scenes. Today, I worked on the Maximum Subarray problem on LeetCode 💻 And instead of directly jumping to the best-known solution, I chose to go with the brute force approach. At first, it felt very basic… almost too simple. Just loops, subarrays, and sums. But as I kept going, I realized something important 👇 🔍 I wasn’t just solving a problem… I was building intuition. I explored: * How every possible subarray is formed * How the sum changes with each new element * How to compare and track the maximum value step by step Yes, it took more time. Yes, the time complexity is O(n²) But something changed while solving it — I started understanding the problem instead of just trying to finish it. 💡 And that’s where the real learning happened. Because when you go step by step: You don’t just write code… You begin to see patterns. You start asking better questions. You understand why a better solution is needed. 🔥 Big Realization: > The goal is not just to solve the problem — > the goal is to understand it so well that optimization becomes obvious. Most of the time, we rush towards “efficient solutions” But today reminded me that strong basics create strong programmers. 📈 This journey is slowly teaching me: * Patience while solving problems * Clarity over speed * Thinking before coding * And most importantly… consistency Even if the progress feels small, it’s still progress. Even if the solution is simple, the learning is powerful. Because in the long run, it’s not about how fast you reach the answer — it’s about how deeply you understand it. Showing up every day, learning something new, and becoming better than yesterday 💯 #Day54 #100DaysOfCode #DSA #LearningInPublic #LeetCode #ProblemSolving #CodingJourney #Consistency #CPlusPlus #DeveloperJourney #TechCareers #KeepBuilding
To view or add a comment, sign in
-
-
Stop guessing your career path 🚀 Top developers don’t just learn—they get certified. 👉 Want Programming Jobs? Get High-Demand Certifications. Certmagic #ProgrammingJobs #Certifications #TechCareers #DeveloperLife #LearnToCode #ITCertification #CareerGrowth #FutureSkills #CertMagic #TechJobs
To view or add a comment, sign in
-
-
Driving Technical Excellence in Tanta. At Code Academy, we believe that mastering code is the fundamental key to unlocking global opportunities. Our commitment is to provide a rigorous, project-based learning environment that prepares our students for the real-world challenges of the software industry. We don’t just deliver courses; we build technical careers. By bridging the gap between theoretical knowledge and industry demands, we ensure our graduates are ready to contribute to the tech ecosystem from day one. Join a community where innovation meets education. Code Academy | Bridging the Gap. Building the Future. #CodeAcademy #SoftwareEngineering #TechEducation #Programming #Tanta #CareerGrowth #Innovation
To view or add a comment, sign in
-
𝟗+ 𝐲𝐞𝐚𝐫𝐬 𝐢𝐧 𝐭𝐞𝐜𝐡. 𝐇𝐞𝐫𝐞'𝐬 𝐰𝐡𝐚𝐭 𝐧𝐨 𝐨𝐧𝐞 𝐭𝐞𝐥𝐥𝐬 𝐲𝐨𝐮 𝐚𝐭 𝐭𝐡𝐞 𝐬𝐭𝐚𝐫𝐭. The best code I ever wrote didn't come from knowing the right syntax. It came from a 10 minute conversation with a user who said: "I just want to stop doing this manually every Friday." That one sentence replaced a 3 week sprint with a 2 hour fix. Nobody teaches you this in college or bootcamp The developers who stand out aren't the ones with the cleanest commits. They're the ones who understand people well enough to build the right thing the first time. Less rework. Less "why did we even build this." Less noise. After 9 years the pattern is clear: The ones who grow the fastest aren't better at coding. They're better at listening. That's the skill I wish someone had told me to build on day one. #LessonsLearned #GrowthMindset #SoftSkills #BuildingProducts #DevLife #SoftwareEngineering #TechCareer #Developer #Programming #CareerGrowth
To view or add a comment, sign in
-
-
🚀 Day 67 of #100daysofcode Today’s learning was all about understanding problems in a simpler and more practical way rather than jumping directly into complex solutions. I worked on improving my problem-solving skills by breaking problems into small steps. Instead of getting stuck thinking about “how to optimize,” I focused first on writing a clear and correct solution — even if it’s not perfect. 💡 One key thing I realized today: 👉 Clarity > Complexity When I first started coding, I used to feel that every solution must be advanced or use complex concepts like Dynamic Programming. But today I understood that even a beginner-friendly approach is powerful if you truly understand it. 📚 What I practiced today: * Writing clean and simple logic * Understanding problems step by step * Avoiding overthinking * Focusing on basics before optimization ⚡ Small progress still matters. Even one concept understood properly is better than solving 10 problems without clarity. Consistency is slowly building confidence, and confidence is turning into progress 🚀 💭 *Still learning, still improving, and not stopping.* #Day67 #100DaysOfCode #CodingJourney #LearningInPublic #Consistency #DSA #Programming #BeginnerFriendly #GrowthMindset #KeepCoding #FutureDeveloper
To view or add a comment, sign in
-
-
🎊 It’s 10th Century on LeetCode 🎊 What I learned after solving 0 → 1000+ DSA questions on LeetCode Hello everyone, After being consistent for the last 3 years—from the very first day of my engineering to now (end of 6th semester)—I have spent most of my time on LeetCode. I’ve solved more than 1000 problems, achieved the Knight badge, and reached a 1900+ rating, placing me in the top 3% globally. 🔑 Key takeaways from my journey: 1. DSA is something that can make you feel very smart at one moment and very dumb the next. 2. Don’t rush while building your problem-solving approach. This journey has phases, and you need to cross each one with consistency. 3. Try to surround yourself with like-minded people. If you don’t have a competitive coding environment around you, connect with people on LinkedIn—you’ll find many who are grinding daily, participating in contests, and guiding each other. 4. Instead of criticizing yourself for not being able to solve a problem, focus on *why* you couldn’t solve it. Have you solved similar problems before? Is the concept new? Or have you not covered the required DSA topic yet? 5. Topics like Dynamic Programming and Recursion take time. Trust me—even after solving 600+ problems, I started getting comfortable with recursion. 6. Try to participate in every contest. It teaches you how to handle pressure, and every contest introduces new types of logical problems. 7. Don’t compare yourself with others. Everyone has their own learning pace and style. Comparing yourself in such a long journey will only make you feel discouraged. LCHandle: https://lnkd.in/dwxhkT3m The journey is tough, but the growth is worth it. If you’re also preparing for DSA or placements, let’s connect and grow together 🤝 𝐏𝐚𝐢𝐧 𝐢𝐬 𝐭𝐞𝐦𝐩𝐨𝐫𝐚𝐫𝐲 . 𝐑𝐞𝐠𝐫𝐞𝐭 𝐢𝐬 𝐟𝐨𝐫𝐞𝐯𝐞𝐫 . 𝐊𝐞𝐞𝐩 𝐆𝐫𝐢𝐧𝐝𝐢𝐧𝐠⚡ #LeetCode #DSA #CompetitiveProgramming #CodingJourney #Consistency #Learning #Growth
To view or add a comment, sign in
-
-
𝐌𝐨𝐬𝐭 𝐩𝐞𝐨𝐩𝐥𝐞 𝐝𝐨𝐧’𝐭 𝐟𝐚𝐢𝐥 𝐛𝐞𝐜𝐚𝐮𝐬𝐞 𝐭𝐡𝐞 𝐭𝐞𝐜𝐡𝐧𝐨𝐥𝐨𝐠𝐲 𝐢𝐬 𝐝𝐢𝐟𝐟𝐢𝐜𝐮𝐥𝐭. They fail because they stop when things get confusing. You start learning… Then hit errors, bugs, concepts you don’t understand and that’s where most people quit. But here’s the truth: Every developer you admire was once stuck on basic errors Every expert struggled with the same confusion The only difference? They didn’t stop If you stay consistent, even when it feels slow… you’re already ahead of 90% of learners. Don’t rush to be perfect. Just focus on not giving up. #DotNet #AspNetCore #LearnToCode #ProgrammingLife #Developers #CodingJourney #TechSkills #BackendDevelopment #WebDevelopment #SoftwareEngineering #CodeNewbie #100DaysOfCode #TechCareers #Consistency #LearnProgramming
To view or add a comment, sign in
-
-
Common Mistakes Junior Developers Make And How to Improve 💻🚀 Growth doesn’t come from avoiding mistakes it comes from fixing them consistently. Remember: Every senior developer was once a beginner. Keep learning. Keep building. Keep improving. 💪 #SoftwareDevelopment #JuniorDeveloper #Programming #Coding #CareerGrowth #Tech #Learning #Developers #SelfImprovement
To view or add a comment, sign in
-
-
𝗠𝘆 𝗯𝗶𝗴𝗴𝗲𝘀𝘁 𝗰𝗼𝗱𝗶𝗻𝗴 𝗺𝗶𝘀𝘁𝗮𝗸𝗲 One of my biggest coding mistakes was trying to learn everything—every popular language, framework, and technology. Guess what? The outcome was poor. My tech career slowed down like a snail, and I wasted a lot of years. So, if you’re starting to learn coding, make sure to focus on one language or technology first and develop deep expertise in it. It will save your precious time, and your career will move in the right direction. #coding #programming #webdevelopment #learncoding #softwareengineering #developerlife #codingjourney #buildinpublic #techcareer #selftaughtdeveloper
To view or add a comment, sign in
-
Explore related topics
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