🚀 Problem of the Day: Minimum Deci-Binary Partitions Given a number as a string n, the task is to find the minimum number of deci-binary numbers needed to sum up to n. A deci-binary number contains only digits 0 or 1. The largest digit in the number directly tells us the answer! Why? Because each deci-binary number contributes at most 1 to each digit, so we need at least as many numbers as the largest digit in n. Sometimes, the simplest observation is all you need! 👉 Check out my solution here : https://lnkd.in/gZS85ZMc #LeetCode #CodingChallenge #ProblemSolving #Cplusplus #Programming #DailyCoding #cpp #POD
Minimum Deci-Binary Partitions: Find Minimum Numbers to Sum to n
More Relevant Posts
-
day 5/50 of #50DaysofLeetCodeChalange 🚀 problem - Find Peak Element (No. 162) approach-Use binary search: compare nums[mid] with nums[mid+1] and move toward the side that is increasing, since a peak always exists in that direction. #DSA #CodingJourney #50DaysOfCode #LeetCode #CPlusPlus #Programming
To view or add a comment, sign in
-
-
You don't need 4 hours a day to learn C#. You need 20 minutes and consistency. This playlist proves it. Each lesson is focused, practical, and builds on the last. No fluff. No filler. Just daily progress that compounds over time. If you've been waiting for a massive time block to start learning, stop waiting. Start with 20 minutes. Begin here: https://lnkd.in/ebft3icT #CSharp #Programming #ConsistencyWins
To view or add a comment, sign in
-
Day 6/30 – Arrays ≠ Pointers Today was about memory clarity. arr is not a pointer. But it behaves like one. • arr vs &arr[0] • *(arr + i) == arr[i] • Why array name can’t be reassigned The more I understand memory, the fewer “magic” errors I make. 6 days in. Getting sharper. #30DaysOfCode #Cplusplus #DSA #Programming #BuildInPublic
To view or add a comment, sign in
-
-
16 Mar 2026 -> Practiced some more problems related to recursion. -> Understood how this can work as Loops. #cpp #programming #LearninginPublic #DevJourney
To view or add a comment, sign in
-
Breaking down the classic Two Sum problem using C++ 🚀 Optimized with vectors + hashing to achieve O(N) time complexity. Understanding why O(N) is optimal is just as important as solving it. Keep learning. Keep building. Learn Something New... #Cplusplus #DSA #CodingInterview #STL #Programming #Tech #Learning #TwoSum
To view or add a comment, sign in
-
-
Day 1 of rust learning series Today, i learned - what is Rust - Where it is used - Problem that rust solve key point - used and acquire the required memory Rust most loved language: - https://lnkd.in/g-QNUsHe #learninginpublic #rust #programming
To view or add a comment, sign in
-
📅 Day 96 of #100DaysOfCode Problem: Rotate List (LeetCode 61) Approach (Linked List Manipulation): 1️⃣ Calculated the length of the linked list. 2️⃣ Connected the tail to the head to form a circular list. 3️⃣ Reduced rotations using k % length. 4️⃣ Found the new tail at position length - k. 5️⃣ Broke the circular link to get the new rotated list. #100DaysOfCode #LeetCode #DSA #LinkedList #Pointers #ProblemSolving #Cplusplus #CodingChallenge #Programming #DeveloperLife #DailyDSA #KeepLearning #TechCommunity #GrowthMindset #Motivation
To view or add a comment, sign in
-
-
Explained the concept of Arrays in C++ through an animated video as part of my academic assignment. 🎥💻 Covered how arrays allow multiple values of the same data type to be stored under a single name and why they are useful in real-world programming. Always exploring creative ways to make technical concepts simple, visual, and engaging. 🚀 #Cplusplus #Programming #Arrays #LearningInPublic #ComputerScience
To view or add a comment, sign in
-
Learning Go (Golang) Fundamentals Please give your feedback in the comments. In this video, I explored core Go concepts: • Variable declaration (var, shorthand) • Constants • Arrays and their different declaration methods • Slices and dynamic memory using make() Building a strong foundation step by step. #Golang #GoLang #BackendDevelopment #Programming #LearningInPublic
To view or add a comment, sign in
-
💻 𝗦𝘁𝗮𝗰𝗸 𝘃𝘀 𝗛𝗲𝗮𝗽 — 𝘄𝗵𝗲𝗿𝗲 𝗱𝗼𝗲𝘀 𝘆𝗼𝘂𝗿 𝗱𝗮𝘁𝗮 𝗹𝗶𝘃𝗲? In C, memory is mainly divided into: 📦 Stack • automatic allocation • fast access • limited size 🗄️ Heap • manual allocation (`malloc`) • flexible size • requires manual freeing Stack is simple and fast. Heap is powerful but risky. 𝗠𝗮𝗻𝘂𝗮𝗹 𝗺𝗲𝗺𝗼𝗿𝘆 𝗰𝗼𝗻𝘁𝗿𝗼𝗹 𝗼𝗳𝗳𝗲𝗿𝘀 𝗽𝗼𝘄𝗲𝗿 — 𝗮𝗻𝗱 𝗿𝗲𝘀𝗽𝗼𝗻𝘀𝗶𝗯𝗶𝗹𝗶𝘁𝘆. #CLanguage #Programming #LearningInPublic #ITStudent
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