Tag

C++

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Jun 15, 2025 · Fundamentals

How C++ Polymorphism Cuts Tight Coupling and Boosts Code Reuse

This article explains C++ polymorphism, shows how virtual functions and inheritance break tight coupling, improve code reuse, simplify extensions, and enhance maintainability, and demonstrates its role in common design patterns such as Strategy and Factory Method with clear code examples.

C++OOPcode reuse
0 likes · 20 min read
How C++ Polymorphism Cuts Tight Coupling and Boosts Code Reuse
Python Programming Learning Circle
Python Programming Learning Circle
Jun 7, 2025 · Fundamentals

How to Choose the Right Programming Language for Your Project

Choosing the right programming language depends on project requirements such as performance, development speed, platform compatibility, and team expertise, with C++ excelling in low‑level control, Java dominating enterprise back‑ends, Python leading in AI and rapid development, and C# powering Windows and Unity game applications.

C++C++Java
0 likes · 9 min read
How to Choose the Right Programming Language for Your Project
Deepin Linux
Deepin Linux
Jun 5, 2025 · Fundamentals

Mastering C++ Move Semantics: Rvalue References and std::move Explained

This article explains C++ move semantics, covering the concepts of lvalues and rvalues, the syntax and rules of rvalue references, how std::move converts lvalues to rvalues, and demonstrates practical applications such as custom class move constructors, STL container optimizations, and return value optimization.

C++Performance Optimizationmove semantics
0 likes · 21 min read
Mastering C++ Move Semantics: Rvalue References and std::move Explained
Deepin Linux
Deepin Linux
May 29, 2025 · Fundamentals

Understanding glibc Heap Memory Management: Architecture, Mechanisms, and Exploitation

This article provides a comprehensive overview of glibc's heap memory management, explaining the role of brk and mmap, the organization of arenas, heaps, chunks, bin structures, allocation and deallocation strategies, and how these concepts are applied in security research and exploit development.

C++Memory Managementfree
0 likes · 29 min read
Understanding glibc Heap Memory Management: Architecture, Mechanisms, and Exploitation
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding Heap Memory Management in C: Detailed Guide to malloc and free

This article provides a comprehensive overview of heap memory management in C, explaining the concepts of heap versus stack, the usage and internal mechanisms of malloc and free, common pitfalls such as memory leaks and dangling pointers, and compares these functions with new/delete, calloc, and realloc.

C++Memory Managementfree
0 likes · 29 min read
Understanding Heap Memory Management in C: Detailed Guide to malloc and free
IT Services Circle
IT Services Circle
May 28, 2025 · Backend Development

WeChat Technical Interview Experience: Java and C++ Candidates' Questions and Insights

The article shares detailed WeChat (wxg) interview experiences from Java and C++ candidates, highlighting the high difficulty, the blend of algorithmic depth and system design breadth, and the extensive range of technical questions that ultimately led both candidates to fail.

BackendC++Distributed Systems
0 likes · 6 min read
WeChat Technical Interview Experience: Java and C++ Candidates' Questions and Insights
Java Tech Enthusiast
Java Tech Enthusiast
May 27, 2025 · Fundamentals

Maximum Probability Path (LeetCode 1514) – Problem Analysis and Java/C++ Solutions

This article presents the LeetCode 1514 'Maximum Probability Path' problem, explains the algorithm using a priority‑queue approach, provides full Java and C++ implementations, and concludes with a promotional book giveaway encouraging readers to follow the public account.

C++DijkstraJava
0 likes · 8 min read
Maximum Probability Path (LeetCode 1514) – Problem Analysis and Java/C++ Solutions
IT Services Circle
IT Services Circle
May 21, 2025 · Fundamentals

Maximum Probability Path (LeetCode 1514) – Problem Description and Java/C++ Solutions

This article presents LeetCode problem 1514, which asks for the path with the highest success probability in an undirected weighted graph, explains the problem statement, constraints, and provides detailed Java and C++ implementations using a priority‑queue based Dijkstra‑like algorithm.

C++DijkstraJava
0 likes · 7 min read
Maximum Probability Path (LeetCode 1514) – Problem Description and Java/C++ Solutions
Deepin Linux
Deepin Linux
May 20, 2025 · Fundamentals

Understanding and Preventing Deadlocks in C++ Multithreaded Programming

This article explains what deadlocks are in C++ multithreaded programming, outlines their causes and four necessary conditions, presents common scenarios and code examples, and offers practical strategies such as consistent lock ordering, std::lock, std::scoped_lock, recursive mutexes, and lock hierarchies to avoid them.

C++DeadlockLock
0 likes · 20 min read
Understanding and Preventing Deadlocks in C++ Multithreaded Programming
Python Programming Learning Circle
Python Programming Learning Circle
May 15, 2025 · Fundamentals

Benchmarking Python 3.11 Performance Against C++ Using Monte Carlo Pi Estimation

This article benchmarks Python 3.11's speed with a Monte Carlo Pi estimation script, compares it to earlier Python releases and a C++ implementation, shows Docker‑based testing methodology, presents performance results, and extrapolates when Python might surpass C++ in execution time.

BenchmarkingC++Docker
0 likes · 9 min read
Benchmarking Python 3.11 Performance Against C++ Using Monte Carlo Pi Estimation
Java Tech Enthusiast
Java Tech Enthusiast
May 15, 2025 · Fundamentals

Detect Squares Problem – Algorithm Design, Hash‑Map Solutions, and Complexity Analysis

The article first highlights Tencent's Q1 2025 financial results and user metrics, then introduces the LeetCode 2013 'Detect Squares' problem, describing its requirements, example, and offering Java, C++, Python, and array‑based solutions along with time and space complexity analysis.

C++DataStructureDetectSquares
0 likes · 9 min read
Detect Squares Problem – Algorithm Design, Hash‑Map Solutions, and Complexity Analysis
IT Services Circle
IT Services Circle
May 13, 2025 · Fundamentals

Maximum Number of Non-Overlapping Subarrays with Sum Equals Target (LeetCode 1546)

The article first critiques a hiring manager’s salary‑balance rationale for a 985‑master candidate, then presents LeetCode problem 1546 on finding the maximum number of non‑overlapping subarrays whose sums equal a target, explaining the solution using prefix sums and providing Java and C++ implementations.

C++JavaLeetCode
0 likes · 6 min read
Maximum Number of Non-Overlapping Subarrays with Sum Equals Target (LeetCode 1546)
Deepin Linux
Deepin Linux
May 11, 2025 · Fundamentals

Understanding C++ Virtual Function Tables (vtable) and Their Memory Layout

This article explains how C++ implements runtime polymorphism through virtual function tables, detailing their structure, memory placement, how they enable dynamic binding, and illustrating usage with single, multiple inheritance and practical code examples.

C++inheritancememory layout
0 likes · 17 min read
Understanding C++ Virtual Function Tables (vtable) and Their Memory Layout
IT Services Circle
IT Services Circle
May 4, 2025 · Fundamentals

LeetCode 407 – Trapping Rain Water II solved with a Dijkstra‑style Priority Queue

The article first discusses how many large companies now filter candidates by strict academic degree requirements, then presents LeetCode problem 407 (Trapping Rain Water II) and provides a detailed Dijkstra‑variant solution using a min‑heap, including full Java and C++ implementations and complexity analysis.

C++DijkstraJava
0 likes · 10 min read
LeetCode 407 – Trapping Rain Water II solved with a Dijkstra‑style Priority Queue
Java Tech Enthusiast
Java Tech Enthusiast
May 4, 2025 · Fundamentals

Technical Interview Q&A: TCP, Redis, Kafka, CAP Theorem, Singleton, C++ STL, and Algorithms

This guide reviews common backend interview topics, explaining TCP TIME_WAIT behavior, multi‑port listening, full page load steps, Redis data types, Kafka consumer sizing and at‑most‑once semantics, the CAP theorem, Singleton usage, C++ std::map complexity, and an O(n) doubly‑linked list reversal algorithm.

AlgorithmsC++CAP theorem
0 likes · 12 min read
Technical Interview Q&A: TCP, Redis, Kafka, CAP Theorem, Singleton, C++ STL, and Algorithms
Tencent Cloud Developer
Tencent Cloud Developer
Apr 28, 2025 · Backend Development

Performance Optimization Techniques for High‑Throughput Backend Systems

The article outlines seven practical performance‑optimization techniques for high‑throughput back‑ends—including replacing protobuf with native C++ classes, adopting cache‑friendly data structures, using jemalloc/tcmalloc, implementing lock‑free double buffers, simplifying structs for specific scenarios, and leveraging profiling tools—while stressing balanced, incremental improvements.

C++Performance OptimizationProtobuf
0 likes · 16 min read
Performance Optimization Techniques for High‑Throughput Backend Systems
Java Tech Enthusiast
Java Tech Enthusiast
Apr 26, 2025 · Fundamentals

Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights

The article reflects on why mid‑career engineers are often relegated to legacy‑maintenance work, argues that such roles can be leveraged for growth by modernizing systems and adopting AI, and then presents the classic Valid Parentheses coding challenge, explaining a stack‑based solution with implementations, complexity analysis, and common pitfalls.

C++JavaPython
0 likes · 14 min read
Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights
Deepin Linux
Deepin Linux
Apr 22, 2025 · Backend Development

C++ Serialization: Concepts, Tools, and Best Practices

Serialization in C++ bridges in‑memory objects and persistent or network formats, addressing challenges like byte order, data type compatibility, and complex structures, while the article reviews core principles, binary and text formats, major libraries such as Protobuf, Cereal, Cista++, ThorsSerializer, and offers guidance on selecting and using them effectively.

C++CerealCista++
0 likes · 41 min read
C++ Serialization: Concepts, Tools, and Best Practices
Deepin Linux
Deepin Linux
Apr 21, 2025 · Backend Development

POSIX Multithreading and Network Programming in C: Threads, Synchronization, and Socket APIs

This article introduces the POSIX standard for portable multithreaded and network programming in C, explains thread creation, lifecycle, and synchronization mechanisms such as mutexes, semaphores and condition variables, and provides complete server‑client socket examples together with practical multithreaded file‑processing code and debugging tips.

C++NetworkPOSIX
0 likes · 23 min read
POSIX Multithreading and Network Programming in C: Threads, Synchronization, and Socket APIs
Deepin Linux
Deepin Linux
Apr 19, 2025 · Fundamentals

Understanding C++ Memory Pools: Concepts, Design, and Implementation

This article explains the problems of memory fragmentation and allocation inefficiency in C++ programs, introduces the concept of memory pools, discusses their design principles, advantages, and common implementations, and provides a complete example of a thread‑safe fixed‑size memory pool with code.

C++Memory Managementallocator
0 likes · 29 min read
Understanding C++ Memory Pools: Concepts, Design, and Implementation