𝐃𝐚𝐲 𝟒𝟖/𝟏𝟎𝟎 – Competitive Programming CodeForces • 474B – Worms • 1520D – Same Differences Worms was a classic prefix sum + binary search problem. Precompute cumulative sums and then answer each query using binary search. Clean and standard approach. Same Differences was straightforward — directly implement what the question suggests after a small observation. Simple problems, but good revision of basics. #Codeforces #CompetitiveProgramming #100DaysOfCode #Implementation #ProblemSolving #DSA #Cpp #Algorithms #DailyPractice
CodeForces Day 18: Worms & Same Differences Solutions
More Relevant Posts
-
🧩 LeetCode Challenge – Day 75 ✅ Today’s problem was a classic Dynamic Programming challenge focused on transforming one string into another. 🔗 LeetCode 72 – Edit Distance The goal is to compute the minimum number of operations needed to convert one string into another using insertions, deletions, or replacements. Defining the DP state as the cost to convert prefixes of the two strings makes the transitions systematic. 💡 Key Takeaways: • String transformation problems often rely on well-defined DP states • Breaking the problem into prefix comparisons simplifies reasoning • Understanding base cases is crucial for correct DP initialization #Day75 #LeetCodeChallenge #365DaysOfCode #DSA #CodingJourney #ProblemSolving #DynamicProgramming #Strings
To view or add a comment, sign in
-
-
𝐃𝐚𝐲 𝟓𝟖/𝟏𝟎𝟎 – Competitive Programming (CodeForces) Solved: 1485A – Add and Divide The idea was to keep increasing the divisor b and simulate the operations. Using log₂(constraints) as an upper bound for the loop keeps the number of iterations small and avoids TLE. Just checking a small range of possible values for b gives the optimal answer. #Codeforces #CompetitiveProgramming #100DaysOfCode #Math #Implementation #ProblemSolving #DSA #Cpp #Algorithms
To view or add a comment, sign in
-
-
Here’s what shipped in Chuks v0.0.4. This release focuses on improving the developer experience, introducing new concurrency primitives, and strengthening the HTTP runtime. Highlights: • chuks upgrade — CLI self-update command • Channel type for concurrent task communication • Default function parameters • Function type annotations • Improved HTTP request types (params, query, formData, files) • TCP fragmentation fix in the HTTP server Testing: 127/127 VM tests 127/127 AOT tests 60 HTTP integration tests More details in the comment 👇 #chuks #chukslang #programming #programminglanguages #systemsengineering
To view or add a comment, sign in
-
𝗘𝘃𝗲𝗿𝘆 𝗱𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿 𝗵𝗮𝘀 𝗵𝗮𝗱 𝘁𝗵𝗶𝘀 𝗺𝗼𝗺𝗲𝗻𝘁. The compiler says: “𝗬𝗼𝘂 𝗵𝗮𝘃𝗲 𝗮𝗻 𝗲𝗿𝗿𝗼𝗿 𝗼𝗻 𝗹𝗶𝗻𝗲 𝟲𝟬.” But your file only has 𝟰𝟬 𝗹𝗶𝗻𝗲𝘀 𝗼𝗳 𝗰𝗼𝗱𝗲. Debugging starts, confusion begins, and suddenly you’re questioning everything you wrote. 😅 Programming teaches many skills, patience might be the biggest one.
To view or add a comment, sign in
-
-
Thrilled to announce the release of Chuks v0.0.6, a major step forward for this exciting new programming language! Chuks combines Go-level AOT performance with modern, expressive syntax and a batteries-included toolchain (built-in HTTP server, concurrency primitives, rich stdlib, and more). With v0.0.6, typed code now delivers identical performance to Go across multiple benchmarks, Windows users get reliable upgrades, and stability has reached a new level with 157 passing golden tests. Key wins in this release: - Typed fields → true 1.0× Go performance (Binary Trees, N-Body, etc.) - Fixed Windows CLI and binary replacement issues - Comprehensive new test suite covering real-world patterns - Overall #1 ranking in warm-cache benchmarks Whether you’re building high-concurrency microservices, APIs, or data engineering tools, Chuks gives you speed without the usual complexity. Check out the full release notes and try it yourself: → GitHub Release v0.0.6: https://lnkd.in/esb2FQPu → chuks.org https://chuks.org/ If you’re a backend engineer, performance enthusiast, or just love clean languages, I highly recommend giving Chuks a spin today. Would love to hear your thoughts, have you tried it yet? Drop a comment or share your first impressions! #ChuksLang #Programming #Performance #NewLanguage #DeveloperTools
To view or add a comment, sign in
-
Chuks Programming Language v0.0.7 Progress Update Compiler Bug Fixes: Squashed 3 AOT compiler bugs, including a subtle parser issue where Automatic Semicolon Insertion (ASI) was suppressed inside anonymous function bodies nested in call expressions. The fix required rethinking how the lexer tracks parenthesis/bracket depth across block scope boundaries. We moved from a reset/restore approach to a floor-based depth model that keeps actual tracking intact while letting ASI fire correctly inside nested blocks. Test Suite: 243/243 golden tests passing across both the bytecode VM and the AOT (native binary) execution modes. More at chuks.org #programming #compilers #languagedesign #chukslang
To view or add a comment, sign in
-
Dev Dictionary #01 In this series we break down common tech terms and explain them in simple words. Today: API (Application Programming Interface) What term should we explain next?
To view or add a comment, sign in
-
-
📚 New article just published on SYUTHD! 🔖 Mastering C# 14 Extensions: Refactoring Your Domain Model for .NET 10 Performance 🏷️ Category: C# Programming 📖 Full article → https://lnkd.in/gUjKXKbx 👉 Follow our page for more tech tutorials: https://lnkd.in/gsJDptPM 💬 Telegram: https://t.me/nisethtechno 👍 Facebook: https://lnkd.in/gsKv3Dyn #CProgramming #Tech #Tutorial #Programming #TechBlog #2026
To view or add a comment, sign in
-
🚀 DSA Progress Update — 109 Problems Solved in Java Over the past few weeks, I’ve been consistently practicing Data Structures and Algorithms in Java, following a structured roadmap of 269 essential problems. So far I’ve solved 109 problems, focusing on strengthening fundamentals and recognizing common algorithmic patterns. 📊 Current progress highlights: • Arrays & Two Pointers — 39 / 39 completed (100%) • Linked Lists — 12 problems solved • HashMap / HashSet — 10 problems solved • Strings — 13 problems solved • Sliding Window — 2 problems solved • Binary Search & Bit Manipulation — early progress • Dynamic Programming — 2 problems solved 🧠 Concepts practiced during this journey: • Two-pointer techniques • Sliding window patterns • Fast & slow pointer (cycle detection) • Hash-based lookups • Linked list manipulation • Prefix sums and greedy strategies • Bit manipulation 💡 Key takeaway Many problems are not about discovering new algorithms, but about recognizing patterns and applying the right technique efficiently. To keep my learning structured, I created a repository where I organize my Java solutions and notes. 💻 GitHub (DSA Solutions in Java) https://lnkd.in/gnEfmGAg 📈 LeetCode Profile https://lnkd.in/d6CKa-BN I’ll continue sharing interesting problems, patterns, and techniques as I progress further. #Java #DSA #Algorithms #LeetCode #ProblemSolving #BackendDevelopment #LearningInPublic
To view or add a comment, sign in
-
🚀 Day 80/100 – LeetCode Daily Challenge 🧠 Problem: Concatenated Binary 📌 Difficulty: Medium Today’s challenge was to concatenate the binary representations of numbers from 1 to n and return the decimal value of the resulting binary string. 💡 Approach: Instead of actually forming the string, I used bit manipulation to simulate the concatenation: For each number i, compute its bit length using floor(log2(i)) + 1. Left shift the current result by that many bits and add i, applying modulo at each step to prevent overflow. This gives an efficient O(n) solution in both time and space. 📊 Result: ✅ 403 / 403 test cases passed ⚡ Runtime: competitive and clean This problem was a great reminder of how bitwise operations can elegantly solve problems that seem string-heavy at first glance. #LeetCode #CodingChallenge #100DaysOfCode #Day80 #Java #BitManipulation #ProblemSolving #Tech #Programming #DailyCoding #DevCommunity #WomenWhoCode #CodeNewbie
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