🚀 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
Building Intuition with Brute Force Approach on Maximum Subarray Problem
More Relevant Posts
-
“How do you manage semester exams with projects, LeetCode, Codeforces, and learning new skills?” Short answer: you don’t “balance” everything perfectly. You prioritize ruthlessly. During semester time, your energy is limited. If you try to go 100% in everything, you’ll end up doing 30% in all of them , which is useless. So the approach is simple: Exams = priority, but don’t kill momentum. I reduce volume, not consistency. • Fewer LeetCode questions —>but at least one. • Skip long contests —>but solve one Codeforces problem. • No huge projects —> but small incremental progress. • Learn less —> but revise basics. The goal is survival, not domination. Most people either stop everything during exams or ignore exams completely. Both are bad strategies. When you stop coding completely, restarting becomes painful. When you ignore exams, your grades suffer for no reason. So I focus on micro-consistency, That’s it. Nothing fancy. Managing everything isn’t about having more time it’s about cutting ego and accepting slower progress temporarily. Consistency > intensity. Always. #SemesterExams #TimeManagement #LeetCode #Codeforces #StudentLife #Consistency #Learning #cfbr
To view or add a comment, sign in
-
A few weeks ago, I noticed something interesting. Many of our students were starting coding practice… but very few were continuing it. The intention was right - platforms like LeetCode and HackerRank are everywhere in hiring today. But the approach? That’s where things were breaking. Students would open a problem, struggle for 20 minutes, feel stuck… and quietly give up. Some would copy solutions just to “complete” it. And slowly, the motivation faded. So we started something simple - CodeHabit. It’s still in progress. Honestly, I don’t know how many are consistently following it. But I do know this — the few who have been doing it sincerely for a while are already seeing a difference. Not just in solving problems, but in how they look at problems. So here’s the simple challenge we’re now pushing: The 50-Day CodeHabit Challenge Not about being perfect. Not about solving the hardest problems. Just about showing up - consistently. Day 1 to Day 10 — Build Confidence - Start small. - Solve 1 easy problem daily - Focus on understanding, not speed - Even if you take 1 hour, it’s okay Rule: If stuck for 30 minutes, don’t quit. Learn and try again. Day 11 to Day 25 - Build Thinking - 1 problem daily (Easy → Medium) - Write logic before coding - Discuss with peers Rule: Don’t copy-paste without understanding. Day 26 to Day 50 - Build Discipline - 1–2 problems daily - Track patterns - Revisit old problems, maybe use a different programming language Rule: Consistency beats intensity. Miss a day? Continue. No guilt, no restart. The goal is not 50 problems. The goal is to reach a point where you don’t panic when you see a problem - you approach it. If you’ve been starting and stopping coding again and again… Try this once. 50 days. Quiet effort. You may not notice it immediately. But one day, you’ll realise - your thinking has changed. #CodeHabit #ConsistencyWins #LearningMindset #Placements #ProblemSolving #LearningAndDevelopment #CodingPreparation
To view or add a comment, sign in
-
When I first started coding, I thought the best developers were the ones who memorized the most. So I kept watching tutorials. Taking notes. Trying to remember everything. And I still felt lost. Turns out the things that actually helped me had nothing to do with memorizing code. I started Googling better instead of trying to remember everything. I stopped panicking every time something broke (okay, I still panic a little). I learned to ask for help before wasting 3 hours going in circles. And I finally just... finished something. Even though it was ugly. That's when things started to click. Not because I got smarter. Because I stopped trying to be perfect and just kept going. Anyone else relate to this? 😅👇 #CodingJourney #LearnToCode #BeginnerDeveloper #SoftwareDevelopment #TechLife
To view or add a comment, sign in
-
#100DaysOfLeetcode journey 🚀 🚀 Day 74/100 — Wildcard Directions & Greedy Optimization! Today’s Problem: 2833. Furthest Point From Origin 🔹 The Goal: Given a string representing moves on a number line ('L' for left, 'R' for right, and '_' as a wildcard), find the maximum absolute distance from the origin you can reach after performing all moves. 🔹 The Insight: This problem boils down to a simple Greedy Strategy. To get as far away from zero as possible, you want to pick a "dominant" direction. The underscores are your flexible assets—they should always be used to reinforce whichever direction ('L' or 'R') you are already moving in more. 🔹 The Logic: Component Counting: I simply counted the occurrences of 'L', 'R', and the wildcards ('_'). Net Displacement: The core distance is the absolute difference between the fixed moves: $|R - L|$. Wildcard Bonus: To maximize the distance, every single underscore should be converted into the direction that increases that absolute difference. The Result: Total Distance = $|R - L| + \text{Underscores}$. ✨ Achievement: Day 74! Approaching the three-quarter mark of the challenge. Today was a great reminder that not every "optimization" problem requires complex Dynamic Programming. Sometimes, the most efficient solution ($O(N)$ time, $O(1)$ space) comes from identifying the greedy choice that yields the maximum variance. 🔍 Steps followed: ✔ Linear Scan: One pass to aggregate the move types. ✔ Directional Bias: Identified the majority direction. ✔ Greedy Allocation: Assigned all flexible moves to the majority direction to maximize the final offset. 🔧 The Stats: Time Complexity: $O(n)$ Space Complexity: $O(1)$ 74 days down! The streak is strong, and the logic is getting leaner. Let's keep moving! 🛠️ #Java #DSA #LeetCode #CodingJourney #100DaysOfCode #SoftwareEngineer #InternshipBound #Programming #GreedyAlgorithms #Logic #Optimization #Day74
To view or add a comment, sign in
-
-
Want to start coding but don’t know where to begin? 💻 The internet is full of resources — but not all of them are worth your time. These platforms are trusted by developers worldwide to learn, practice, and grow in coding. Whether you're a beginner or looking to level up, save this post and start exploring 🚀 👉 Consistency > Perfection 👉 Start small, build daily 📌 Which one have you tried already? #CodingResources #LearnToCode #ProgrammingLife #DeveloperTools #CodingJourney #TechSkills #WebDevelopment #SoftwareDeveloper #CodingBeginner #LearnProgramming #CodeNewbie #DeveloperLife #TechEducation #ProgrammingTips #FutureDevelopers #CodeEveryday #CodingCommunity #DevLife #Lipipoint
To view or add a comment, sign in
-
-
How I Use LeetCode as a Beginner 💻 When I first started using LeetCode, I felt completely confused. There were so many problems and topics that I did not know where to begin. At the beginning, I thought solving more problems would make me better. But slowly I understood that it is not about solving more, it is about understanding better. Now I try to keep my approach simple and realistic. I start with easy problems to build confidence. Before writing any code, I try to understand the problem in my own way. Most of the time I get stuck, and honestly that used to frustrate me. But now I see it differently. Getting stuck means I am learning. When I cannot solve something, I check the solution. Not to copy, but to understand why it works. One thing I have realized Even solving one problem a day is enough if I am thinking properly. For me, problem solving is not just about coding anymore It is changing the way I think. Still learning. Still improving. How are you using LeetCode in your journey 👇 #LeetCode #ProblemSolving #CodingJourney #Programming #ComputerScience
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
-
-
We’re ending the month with the next #OpenTaggerOnFocus, featuring Iliyan Tsvetkov, Junior Go Developer. Find out how he got into Go, what he’s learned so far, and how he tackles challenges. Let's Go! 🚀 ❓ What sparked your interest in programming and how did you get into Go? 💡 Interestingly enough, I was never into programming, nor did I think about dipping my toes into it until 2022, when a friend of mine, who’s a programmer, encouraged me to enroll in a six-month boot camp program. Even then, it took me a few months before it actually became interesting, the rest is history. I got into Go probably a year into my first job after being influenced by a lot of videos and people generally recommending that I give it a try. I built a small application for internal use at that company using Go, and I haven’t looked back since. ❓ What’s one concept or skill that took you the longest to fully understand? 💡 The only thing that comes to mind is the administrative part of the job. The same way it's easy to get lost working on a feature, fixing a bug or planning something, it's just as easy blanking on moving a ticket, opening your email tab or not setting a reminder on a message in Slack. ❓ What’s something you’ve learned recently that changed the way you approach coding? 💡 Taking more breaks between sessions, giving my brain time to process new information or the specific problem I am trying to solve. ❓ How do you usually approach a problem when you don’t know where to start? 💡 It’s hard when you don’t have a clue where to start. Momentum, in my opinion, is very important in this job, so starting a solution to a problem from scratch is one of the toughest things (for me). Regardless, it often comes down to a lot of reading (code), as boring as it sounds. I think the strongest skill here is knowing how to navigate a codebase, understanding which tools can help you, and, as a last resort, knowing who to speak to. If we are talking about building something completely new, then brainstorming sessions with colleagues and/or rubber duck programming. Actually getting your thoughts out, vocally, helps a lot. ❓ If your job were a game, what would the current level be called? 💡 There's a game called Hades where you play as Hades' son, Zagreus. One of the levels you go through is called Elysium, and for one reason or another, I feel that's appropriate for where I am now. - - - More inspiring stories from our team coming soon - follow us! #OpenTaggerOnFocus #OpenTagger #GoDeveloper #JuniorDeveloper #TechCareers #OurTeam
To view or add a comment, sign in
-
-
🚀 3 Coding Habits That Will Make You a Better Developer This Week As a developer with 9+ years of experience, I've seen many struggle with self-improvement. Here are three coding habits that can help: 1. Write code that's easy to read. Use clear variable names and keep functions short. Your future self , and others, will thank you. 2. Test as you go. Don't wait until the end to find bugs. It saves time and reduces stress. 3. Learn from failures. Every bug or mistake is a chance to learn. Analyze what went wrong and how to fix it. By adopting these habits, you'll become a better developer and improve your coding skills. What's your favorite coding habit? Share with me in the comments! #DeveloperLife #CodingHabits #SelfImprovement #TechCommunity #CodingSkills #DeveloperTips #HabibAhmed #CodingLife #Freelancing #TechTips #ProductivityHacks #CodingBestPractices #DeveloperProductivity #CodingCommunity
To view or add a comment, sign in
-
🚀 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
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