𝐃𝐚𝐲 𝟖𝟎/𝟏𝟎𝟎 – Competitive Programming (CodeForces) • 2211A – Antimedian Deletion • 2211B – Mickey Mouse Constructive --A was about observing the pattern from sample testcases and applying it correctly. --B was a constructive problem, building the array using -1 and 1 based on conditions. #Codeforces #CompetitiveProgramming #100DaysOfCode #Constructive #Implementation #ProblemSolving #DSA #Cpp #Algorithms
CodeForces Day 90: Antimedian Deletion & Mickey Mouse Constructive
More Relevant Posts
-
𝐃𝐚𝐲 𝟗𝟐/𝟏𝟎𝟎 – Competitive Programming (CodeForces) Solved: 977C - Less or Equal, 1872D - Plus Minus Permutation --977C was simple greedy: sort the array and check the k-th position carefully to satisfy the condition. --1872D was more math + greedy: instead of building permutation, count multiples using LCM, assign largest values to x-multiples and smallest to y-multiples, then compute score. #Codeforces #CompetitiveProgramming #100DaysOfCode #Greedy #Math #NumberTheory #ProblemSolving #DSA #Cpp #Algorithms
To view or add a comment, sign in
-
-
Master the fundamentals of C with this comprehensive guide covering essential Data Types, popular IDEs, and core Standard Libraries. From memory-efficient integers to complex pointers and structures, this visual breakdown provides a clear reference for system-level programming. Keep an eye on the "Tricky Examples" in the corner to avoid common pitfalls like pointer precedence and unsigned overflows! #CProgramming #CodingFundamentals #SoftwareEngineering #TechEducation #DataTypes #CSkills #ProgrammingReference
To view or add a comment, sign in
-
-
Solving Dynamic Programming (DP) Problems everyday... #day87 of #365DaysOfCode Today's logic: 💡 Current cell = left + top ✅ Left = dp[j-1], Top = dp[j] Leetcode Problem: 62. Unique Paths #365DaysOfCode #100DaysOfCode #DSA #Leetcode #GeeksForGeeks #Daily #CPP
To view or add a comment, sign in
-
-
Solved a Gray Code problem in C++ today. The task was to generate bit patterns from 0 to 2^n - 1 such that every consecutive pattern differs by only one bit, while always starting from 0. I used the Gray code formula: gray = i ^ (i >> 1) This makes the solution clean and efficient, and guarantees that adjacent codes differ by exactly one bit. Example for n = 2: 00 -> 01 -> 11 -> 10 What I like about this problem is how a simple bit manipulation formula can solve what looks like a complex sequence-generation challenge. Concepts practiced: Bit Manipulation Binary Representation Pattern Generation C++ Problem Solving #cpp #coding #programming #datastructures #algorithms #problemsolving #bitmanipulation #leetcode #geekforgeeks
To view or add a comment, sign in
-
-
💡 DP (Dynamic Programming) becomes simple with the right problem — Counting Bits (LeetCode 338) 👉 dp is using previous results to compute new results Instead of recomputing, just reuse: `bits[i] = bits[i >> 1] + (i & 1)` Same patterns. Less work. Faster solution. #DynamicProgramming #LeetCode #DSA #CodingInterview #ProblemSolving #BitManipulation
To view or add a comment, sign in
-
Rust's borrow checker isn't the hard part. The hard part is unlearning every shortcut you got away with in other languages. No more "I'll just clone it." No more "this pointer is definitely still valid." No more silent data races. Rust doesn't trust you. After years of C++ bugs — honestly, fair. #Rust #Programming #SoftwareEngineering #SystemsProgramming #DevLife
To view or add a comment, sign in
-
-
RevelCode is the intuitive programming language built for engineers and operators alike, designing out common mistakes from the ground up so your control logic is inherently failsafe. Listen to the full segment with Scott Morton on TBPN - link in comments.
To view or add a comment, sign in
-
rust 1.95.0 released ✅ cfg_select! is now built-in: Say goodbye to dependency bloat. This new macro provides a native way to handle conditional compilation with a clean, match-like syntax. It’s essentially a built-in version of the popular cfg-if crate. ✅ if let guards in matches: We finally have more power in match arms! You can now use if let patterns as guards, allowing you to bind variables and check conditions simultaneously within a single match arm. No more nested "if" soup. ✅ Fixing the "Range" Mistake: For years, the fact that Range didn't implement Copy was considered a core design regret. 1.95.0 introduces core::range::RangeInclusive, a major step toward a modern, copyable range system that will eventually become the default in Edition 2027. https://lnkd.in/ddtBn_R8 #RustLang #Programming #SoftwareEngineering #OpenSource #CodingUpdate #Rust195
To view or add a comment, sign in
-
Stop memorizing Rust rules. Start deriving them. 🦀 This free interactive course reframes the borrow checker not as a set of rules to memorize, but as the logical outcome of three primitives: Space, Time, and Coordinates. 📐 Every memory bug is just a failure in one of these three dimensions: 🔸 Use-after-free 🔸 Dangling pointer 🔸 Data race 🔍 Understand the framework, and the compiler's behavior clicks into place. ✅ 💡 Highly recommended for experienced devs, especially those with a C/C++ background. 👇 https://lnkd.in/gAsQvjhv #Rust #RustLang #Programming #SystemsProgramming #SoftwareEngineering
To view or add a comment, sign in
-
-
Replacing C++ with RUST might not be a good idea as C++ is stepping into a new era with a powerful framework designed to express and control concurrency and parallelism more intuitively. At its core, the model introduces three key abstractions: schedulers, senders, and receivers. These components work together seamlessly, enabling developers to compose flexible and customizable asynchronous workflows. What makes this especially exciting is how naturally it integrates with C++20 coroutines. This combination simplifies the process of writing structured concurrency, where lifetimes are cleanly nested and easier to reason about. The result? Programs that are safer by design and inherently resistant to data races. It’s not just about performance anymore—it’s about correctness and clarity at scale. Even more promising, major compilers like GCC and Clang are already ahead of the curve. They’ve implemented a significant portion of upcoming C++26 features during the standardization phase. The future of modern C++ is arriving faster than expected—and it’s built for safer, smarter parallelism. #C++2026 #OOP #Programming
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