Blog
-
Coding Test Complete Preparation Complete Guide | From Algorithms to Practical Tips
Systematically organize coding test preparation strategy. Detailed explanation of essential algorithms, data structures, problem-solving patterns, time ...
-
C++ Numeric Algorithms Complete Guide | accumulate, reduce, transform_reduce, partial_sum
Master C++ <numeric> algorithms: std::accumulate vs std::reduce (associativity, parallel policies), transform_reduce for map-reduce, inner_product for d...
-
C++ async & launch | Complete Guide to std::async, future & launch policies
std::async is a C++11 API that executes functions asynchronously and receives results via future. Complete guide to launch::async, launch::deferred poli...
-
C++ Branch Prediction | Complete Guide to likely/unlikely Optimization
C++ branch prediction: CPU pipeline, misprediction penalty, [[likely]]/[[unlikely]], branch elimination, sorting effects, and PGO with practical examples.
-
C++ Cache Replacement Algorithms Complete Guide | FIFO·LRU·LFU·Clock·MRU·OPT Comparison
Comprehensive guide to cache replacement policies similar to LRU. FIFO·LFU·MRU·Random·Clock(Second Chance)·OPT intuition, pros/cons, complexity, real-wo...
-
C++ I/O Optimization Cheatsheet | sync_with_stdio·cin.tie·TLE Prevention Complete Guide
C++ I/O optimization for coding test TLE prevention. ios::sync_with_stdio(false)·cin.tie(nullptr) principles, getline vs cin, buffers, templates, benchm...
-
Modern C++ (C++11~C++20) Core Syntax Cheatsheet | auto·Lambda·Smart Pointers·Concepts at a Glance
Modern C++ C++11~C++20 core syntax cheatsheet. auto, range-for, lambda, smart pointers, optional, variant, Concepts, Ranges copy-paste ready summary for...
-
C++ new vs malloc | Constructor·Type Safety·Exception Handling Complete Comparison
C++ new vs malloc differences. Constructor·destructor, type safety, exception vs nullptr on failure. Performance is almost the same but why new·delete i...
-
C++ malloc vs new vs make_unique | Memory Allocation Complete Comparison
C++ malloc vs new vs make_unique: Complete memory allocation comparison. Differences in constructor calling, exception safety, RAII. Principles, code, a...
-
C++ Compile-Time Programming Complete Guide | constexpr, consteval, if constexpr & TMP
Master C++ compile-time programming: constexpr variables/functions/classes, consteval immediate functions, if constexpr conditional compilation, templat...