🚀 Day 11/30 🗓30days30problems journey 💡Today’s practice session gave me an important insight about the power of dry run while solving problems. 📚While working on problems ranging from Binary Search (Medium level) to String-based questions, I realized that doing a proper dry run makes a huge difference in understanding the logic and memorizing the pattern. 📥Instead of jumping directly into coding, tracing the algorithm step-by-step on paper or in mind helps to: ✔️ Understand the problem clearly ✔️ Avoid silly mistakes ✔️ Remember the approach for longer time ✔️ Improve problem-solving speed 📌Dry run is not just for beginners — it is a habit that makes complex problems look simple. Every day in this 30days30problems journey, I’m learning that consistency + clear thinking > rushing to code. Looking forward to Day 12 🔥 #LeetCode #30daysofCode #ProblemSolving #DSA #CodingJourney #BinarySearch #Strings #LearningInPublic #30Days30Problems #SDE #SWE #Technology
30 Days of Code: Dry Run Boosts Problem Solving Speed
More Relevant Posts
-
🚀 Day 85 of #100DaysOfCode Today I explored something deeper than just coding — proving that code is correct using the concept of Loop Invariants 🔍 💡 I worked on Insertion Sort, but instead of just implementing it, I understood why it works for every input. 👉 Key Learning: A Loop Invariant helps us prove correctness in 3 steps: 1️⃣ Initialization At the start, the first element is already sorted ✔️ 2️⃣ Maintenance With every iteration, the sorted portion grows while maintaining order 🔄 3️⃣ Termination At the end, the entire array becomes sorted ✅ ⚠️ Found a small but important bug in my code: I was using j > 0 instead of j >= 0, which skipped comparisons at index 0 😬 Fixing this made the algorithm work perfectly! 🧠 This taught me: Writing code is one thing… Proving it works for all cases is what makes you a real developer. 💻 Problem solved: Sort an array using Insertion Sort and print the final sorted result. 🔥 Example: Input: 7 4 3 5 6 2 Output: 2 3 4 5 6 7 📌 Day by day, improving not just coding skills but also problem-solving mindset. #Day85 #CodingJourney #DSA #InsertionSort #LoopInvariant #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
🚀 Day 53 of #100DaysOfCode — Mastering In-Place Problem Solving Today’s focus: LeetCode #48 — Rotate Image🧠 At first glance, this problem looks simple… until you hit the constraint: 👉 You must rotate the matrix in-place (no extra space allowed). That’s where the real learning begins. 💡 What I learned today: * Difference between brute force vs optimized approach * Why space complexity matters in real-world systems * How to break a problem into steps: 1. Transpose the matrix 2. Reverse each row * Improved understanding of 2D array manipulation 🔍 Key Insight: Most problems aren’t about coding — they’re about *thinking in transformations. Once you visualize the pattern, the solution becomes elegant. 💻 Tech I’m sharpening daily: * Data Structures & Algorithms (DSA) * Problem-solving mindset * Writing clean & optimized C++ code 📈 Consistency Update: Even on days when it feels tough or slow, I’m showing up. Because growth isn’t about speed — it’s about discipline. 🎯 Goal: Become a strong problem solver ready for real-world engineering challenges. If you're also on a coding journey, let’s connect and grow together 🤝 #Day53 #100DaysOfCode #DSA #LeetCode #CodingJourney #SoftwareEngineering #ProblemSolving #CPlusPlus #TechCareers #LearningInPublic #Consistency #FutureEngineer
To view or add a comment, sign in
-
-
🚀 Day 50/100 Halfway through the journey, and the learning keeps getting better 🔥 📌 Problem Statement: Given a sorted array, find the starting and ending position of a target element in O(log n) time. 🧠 What I Learned: • Binary Search is not just for finding elements, but also for finding boundaries • How to tweak conditions to get first vs last occurrence • Writing efficient code matters as much as correct code Every day is a small step forward — and these steps are adding up 💯 #Day50 #BinarySearch #DSA #CodingJourney #KeepGoing #GrowthMindset #100Daysofcode
To view or add a comment, sign in
-
-
🚀 Day 90 / 100 — Speed Comes From Clarity, Not Practice Most people think speed in coding comes from solving more problems… But today I realized — 👉 Speed is a byproduct of clarity. Earlier, my mindset was: 👉 “Jaldi solve karna hai” But today I asked: 👉 “Mujhe exactly kya compute karna hai — aur kya avoid karna hai?” And that changed everything. 💡 Key Insight: I focused on: • Eliminating unnecessary computations • Identifying repeating patterns early • Using the right data structure instead of forcing logi Result? Less code. Less confusion. Faster solution. ⚡ What I learned today: • Optimization ≠ complex logic • It’s about removing waste, not adding effort • The best solutions feel obvious after you understand the pattern 📊 Approach Used: Pattern Recognition + Efficient Traversal + Smart Pruning 🎯 Realization: Fast coders aren’t fast because they type quickly… They’re fast because they think clearly. 📍 Learning at Parul University 💻 Practicing daily on LeetCode 🔥 Day 90 complete. On to Day 91 — mastering depth over speed. #LeetCode #DSA #Algorithms #SoftwareEngineering #ProblemSolving #100DaysOfCode #DeveloperJourney #TechCareers #CodingLife #GrowthMindset
To view or add a comment, sign in
-
-
Day 26: 90-Day Coding Challenge 🚀 Today was about exploring all possible configurations and understanding how constraints guide valid solutions. These problems required thinking in terms of choices and carefully validating each step. Today’s learning highlights: ✅ Using backtracking to generate all valid permutations and arrangements ✅ Understanding how to apply constraints while placing elements step by step ✅ Learning to prune invalid paths early to make solutions more efficient These problems reinforced how powerful backtracking is when combined with smart validation. Explore → Validate → Backtrack. Building stronger problem-solving intuition. Day 26 done. On to Day 27. 💻🔥 Anchal Sharma Ikshit .. #90DayCodingChallenge #CodingJourney #ProblemSolving #Backtracking #Recursion #LearningJourney #Consistency #Growth
To view or add a comment, sign in
-
🚀 Day 41 | 100 Days of Coding Challenge #DrGViswanathanChallenge 📘 Problem Solved: Remove K Digits (LeetCode) 🔧 Approach Used (Monotonic Stack - Greedy): • Used a stack to maintain digits in increasing order • If current digit is smaller than top → pop larger digits (to minimize number) • Continued until k digits are removed • If still k remains, removed from end • Built final number and removed leading zeros 📌 Key Idea: To get the smallest number, always try to remove larger digits that come before smaller digits. ⏳ Complexity: Time: O(n) Space: O(n) 🧠 Key Learning: Greedy + stack works perfectly when we need to build the smallest/largest sequence by removing elements. 💡 Optimization Insight: Monotonic stack helps make optimal decisions locally, leading to a globally optimal solution. 📂 Topics Covered: Stack, Greedy, Strings 📊 Example: Input: "1432219", k = 3 Output: "1219" 🔥 Another powerful use of monotonic stack in optimization problems! #100DaysOfCode #DSA #CPP #LeetCode #CodingJourney #CompetitiveProgramming
To view or add a comment, sign in
-
-
🚀 Day 23 of 100 Days LeetCode Challenge Problem: Maximum Non-Negative Product in a Matrix Today’s problem was a deep dive into Dynamic Programming with edge cases (negative values) 🔥 💡 Key Insight: Since the grid contains negative numbers, the product can flip sign. 👉 So at each cell, we must track: Maximum product so far Minimum product so far Because: Negative × Negative = Positive 💥 🔍 Core Approach (DP): 1️⃣ DP State: For each cell (i, j) maintain: maxProduct[i][j] minProduct[i][j] 2️⃣ Transition: From top (i-1, j) and left (i, j-1): Multiply current value with both max & min Take: max → for maxProduct min → for minProduct 3️⃣ Final Answer: If final max ≥ 0 → return max % (10⁹ + 7) Else → return -1 🔥 What I Learned Today: Negative values require tracking both extremes DP is not always just “max”—sometimes it’s min + max together Edge cases define the real difficulty of a problem 📈 Challenge Progress: Day 23/100 ✅ Getting stronger with DP! LeetCode, Dynamic Programming, Matrix, Optimization, Negative Numbers, Algorithms, DSA Practice, Coding Challenge, Problem Solving #100DaysOfCode #LeetCode #DSA #CodingChallenge #DynamicProgramming #Matrix #ProblemSolving #TechJourney #ProgrammerLife #SoftwareDeveloper #CodingLife #LearnToCode #Developers #Consistency #GrowthMindset #InterviewPrep
To view or add a comment, sign in
-
-
Introduction to Grit Framework — Course 0 This course introduces Grit Framework — what it is, why it was created, how it compares to other tools, and what you'll learn throughout this course series. No coding in this course. Just concepts and understanding. By the end, you'll know exactly what Grit gives you and whether it's the right tool for your next project. 📖 Read the course here → https://lnkd.in/d6J5-v4X ▶️ Watch on YouTube → https://lnkd.in/dAkTSq7Q #Go #React #GritFramework #FullStack #WebDevelopment #OpenSource
To view or add a comment, sign in
-
-
𝐂𝐨𝐮𝐥𝐝 𝐲𝐨𝐮 𝐬𝐩𝐨𝐭 𝐭𝐡𝐞 𝐞𝐫𝐫𝐨𝐫 𝐢𝐧𝐬𝐭𝐚𝐧𝐭𝐥𝐲 𝐟𝐨𝐫 𝐭𝐡𝐢𝐬 𝐬𝐢𝐦𝐩𝐥𝐞 𝐬𝐜𝐞𝐧𝐚𝐫𝐢𝐨? Logical thinking is the building block of any good software developer.If you can't wrap your brain around this instantly, you’re one of many. It’s exactly the kind of invisible "𝐥𝐨𝐠𝐢𝐜 𝐛𝐮𝐠" that can break an entire system, regardless of how clean the syntax looks. This famous missing-dollar riddle isn't about the 𝐦𝐚𝐭𝐡, it's about 𝐫𝐞𝐚𝐬𝐨𝐧𝐢𝐧𝐠 𝐭𝐡𝐫𝐨𝐮𝐠𝐡 𝐚 𝐩𝐫𝐨𝐜𝐞𝐬𝐬 𝐟𝐫𝐨𝐦 𝐬𝐜𝐫𝐚𝐭𝐜𝐡. Start your logic-building journey with 𝐜𝐥𝐚𝐫𝐢𝐭𝐲 and 𝐟𝐨𝐜𝐮𝐬, and placements will be a 𝐛𝐲𝐩𝐫𝐨𝐝𝐮𝐜𝐭. Join the last Skill Turtle cohort of this year : https://lnkd.in/g7bipega #SoftwareEngineering #ProblemSolving #SkillTurtle #PlacementPrep #BrainTeaser #ProgrammingLife #TechCareer #LogicChallenge
To view or add a comment, sign in
-
-
🚀 Day 45 | 100 Days of Coding Challenge #DrGViswanathanChallenge 📘 Problem Solved: Stock Span Problem (LeetCode) 🔧 Approach Used (Monotonic Stack): • Used a stack to store pairs of {price, span} • For each new price, popped all smaller or equal prices from stack • Accumulated their span to get the current span • Pushed the current price with its computed span 📌 Key Idea: Maintain a decreasing stack so we can efficiently skip previous smaller elements and calculate span in one go. ⏳ Complexity: Time: O(n) amortized Space: O(n) 🧠 Key Learning: Monotonic stack helps optimize problems involving “nearest greater/smaller elements” and avoids redundant comparisons. 💡 Optimization Insight: Instead of checking all previous elements (O(n²)), stack helps compress multiple comparisons into one step. 📂 Topics Covered: Stack, Monotonic Stack, Design #100DaysOfCode #DSA #CPP #LeetCode #CodingJourney #CompetitiveProgramming
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