Black Friday Deals For Authors Are On Now!

Leanpub Header

Skip to main content

Filters

Category: "Algorithm"

Algorithm

New to Computer Science? Read the Computer Science article

  1. Palette Programming
    Palette Programming
    Invent Your Own Color Reduction Algorithm
    Pekka Väänänen

    Learn image processing in a fun way by writing your own color reduction programs.Color reduction converts a photo or a painting into a compressed format with only a handful of colors. This book begins with a beginner's guide to the field and continues with in-depth material for advanced readers.

  2. Rust for Systems Programming: From Memory Fundamentals to High-Performance Software
    Rust for Systems Programming: From Memory Fundamentals to High-Performance Software
    A comprehensive guide to building reliable, secure and efficient systems software with Rust
    Steve Publications

    Ready to move beyond the basics of Rust? This book takes you inside the language, from ownership and memory management to concurrency, networking and performance optimization. Build real systems projects, learn to track down tricky bugs and gain the skills to write Rust software that is fast, secure and reliable.

  3. Lean 4: Programming, Proof, and Formal Verification
    Lean 4: Programming, Proof, and Formal Verification
    A Deep Guide to Functional Programming and Interactive Theorem Proving
    Steve Publications

    Go beyond the basics of Lean 4. This practical deep dive explores functional programming, dependent types, theorem proving and formal verification. Learn how Lean works under the hood, build reliable proofs and automation, and tackle larger formal projects with confidence.

  4. C++ Algorithmic Mastery: 1000 Challenges from Beginner to Legendary
    C++ Algorithmic Mastery: 1000 Challenges from Beginner to Legendary
    Solved and Tested — A Complete 8-Volume Journey from Beginner to Advanced Algorithms
    Hatem M.

    1000 carefully designed C++ problems across 8 progressive volumes — from your very first line of code to advanced algorithms. Every single solution is compiled and tested on g++, with hints, complexity analysis, and a clear explanation for each. A complete, structured path from beginner to mastery.

  5. Super Study Guide: Algorithms & Data Structures
    Super Study Guide: Algorithms & Data Structures
    Afshine Amidi and Shervine Amidi

    A concise, illustrated guide to algorithms and data structures, perfect for coding interviews, classes, or self-study. Covers key concepts, from fundamentals to graphs, trees, sorting, and search techniques.

  6. Advanced Rust Programming
    Advanced Rust Programming
    From Mastery to Expert Systems Craft
    Steve Publications

    Advanced Rust Programming goes beneath Rust’s safe surface to reveal the machinery that makes high-performance systems possible. Explore unsafe contracts, atomics, async internals, FFI, allocators and more through practical examples that sharpen your instincts and help you build faster, safer production-grade software.

  7. Build an LLM Inference Engine in C++
    Build an LLM Inference Engine in C++
    A Challenge-Driven Guide to Building a CPU-First Inference Engine in C++20
    Hatem M.

    Build a complete LLM inference engine in C++ — from a blankproject to a working Transformer that loads a real model andgenerates text. Forged one challenge at a time, with teststhat prove every piece works before you move on.

  8. Building Database Engines from Scratch
    Building Database Engines from Scratch
    A Hands-On Guide to Storage, Concurrency, Query Processing, and Reliability in Systems Programming
    Steve Publications

    What really happens between typing a SQL query and getting a result? Build a database engine from the ground up in Rust and find out. You’ll work through storage, indexing, concurrency, recovery and query processing while turning each chapter’s code into one working system.

  9. Building Programming Languages with Rust
    Building Programming Languages with Rust
    From Lexers to LLVM: A Complete Guide to Language Implementation
    Steve Publications

    Learn how to build a modern programming language from scratch in Rust. By implementing a complete language called Rune, you will explore every stage of language design, from lexing and parsing to type checking, virtual machines, LLVM code generation, and developer tooling, with practical code and clear explanations throughout.

  10. Data Structures and Algorithms in Programming
    Data Structures and Algorithms in Programming
    A Complete Guide from Fundamentals to Advanced Techniques
    Steve Publications

    Build a strong foundation in data structures and algorithms with clear explanations and practical Python examples. From core concepts to advanced techniques, this guide helps you understand how efficient software is designed so you can write better code with confidence and solve real programming challenges.

  11. Modern C++ Memory Safety
    Modern C++ Memory Safety
    Safer Systems Software Without a Full Rewrite
    Steve Publications

    Modern C++ Memory Safety shows you how to make existing C++ systems safer without starting over. Learn practical ways to find and fix memory safety issues using modern C++, compiler tools, sanitizers, static analysis and fuzzing, with techniques you can apply directly to real production code.

  12. Conflict-Free Replicated Data Types
    Conflict-Free Replicated Data Types
    A Practical Guide to Building Distributed Collaborative Systems
    Steve Publications

    Build collaborative software that keeps working when the network does not. This practical guide takes you from distributed systems fundamentals to working CRDT implementations and production-ready collaboration. Learn how CRDTs work, where they fit and how to handle scaling, security, metadata growth and failure in real systems.

  13. The C++ STL Handbook
    The C++ STL Handbook
    Containers, Algorithms, Iterators, Ranges, and Beyond
    Steve Publications

    Go beyond C++ syntax and learn to use the STL with confidence. Explore containers, algorithms, iterators, ranges and more through practical examples, performance insights and real-world patterns. Build a deeper understanding of how the STL works, when to use each tool and how to write cleaner, faster and more maintainable C++.

  14. Formal Verification for Working Software Engineers
    Formal Verification for Working Software Engineers
    From First Principles to Production-Grade Verified Systems
    Steve Publications

    Formal verification does not have to live in research papers. This practical guide shows working software engineers how to turn real requirements into precise, machine-checkable guarantees, find bugs before they reach production and bring formal methods into everyday development, from application code to distributed and security-critical systems.

  15. Boost C++: The Complete Guide
    Boost C++: The Complete Guide
    From Fundamentals to Advanced Library Engineering
    Steve Publications

    Go beyond simply using Boost and discover the thinking behind its design. This comprehensive guide takes you from the fundamentals to advanced library engineering, exploring the history, philosophy and inner workings of one of C++'s most influential library collections. Packed with practical examples and production insights, it is an essential resource for writing better, more reliable modern C++.