Leanpub Header

Skip to main content

Filters

Category: "Algorithm"

Books

  1. 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.

  2. 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.

  3. 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.

  4. Prolog Programming: From Fundamentals to Advanced Logic Programming
    Prolog Programming: From Fundamentals to Advanced Logic Programming
    A comprehensive guide to logic programming with SWI-Prolog
    Steve Publications

    Discover the power of thinking in logic. This hands-on guide takes you from your first Prolog query to advanced techniques in constraints, grammars, AI search, meta-programming and production development. With clear explanations and executable SWI-Prolog examples, you’ll learn not just how Prolog works, but how to use it well.

  5. The Art of Concurrent Programming
    The Art of Concurrent Programming
    Locks, Atomics, Lock-Free Systems and High-Performance Concurrent Software
    Steve Publications

    Concurrency is where small mistakes become serious problems. This practical guide takes you from hardware and memory models to locks, atomics and lock-free algorithms, with a focus on building fast, reliable systems that hold up under real production workloads.

  6. 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++.

  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. Physics-Informed Machine Learning A Practical Guide: Stage 1 Foundations & Your First PINN

    A practical, code-first guide to physics-informed machine learning for scientists and engineers. You'll build a working Physics-Informed Neural Network from scratch in PyTorch, solve a real differential equation, and verify it against the exact solution — staying honest about both the power and the limits of the method.

  9. Assembly Arithmetic Algorithms 32 and 64 bit Windows Edition

    Assembly programming is actually a lot like Minecraft or Terraria because you start the game with nothing and have to slowly build your tools to make something useful. I started Assembly in 2024 and have already built a series of tools I personally use on both DOS and Linux operating systems. Through the course of this book, I will be slowly showing you how I can port everything in the Linux version of Assembly Arithmetic Algorithms to Windows.

  10. TLDR: Data Structures and Algorithms
    TLDR: Data Structures and Algorithms
    From Knowing Python to Cracking Leetcode Patterns
    John G

    A book designed to help you transition from merely knowing Python to cracking Leetcode patterns. This book explains core DSA concepts through clear, intuitive analogies and walks you through the most important Leetcode patterns. If you're aiming to ace your next coding interview, this is the book I wish I had when I started.

  11. Learn Programming with FlowRun
    Learn Programming with FlowRun
    A visual introduction into the world of programming
    Sakib Hadžiavdić

    Learn the basics of programming with runnable flowcharts!Develop a groundwork for your next programming language, be that Python, Java, C# or any other.Try interactive examples in a matter of seconds!

  12. AI-Driven Database Query Optimization
    AI-Driven Database Query Optimization
    From Cost Models to Neural Optimizers — A Practical Engineering Guide
    Steve Publications

    What happens when AI starts making the decisions behind your database queries? This practical guide explores how modern optimizers work, then shows how machine learning and reinforcement learning can improve them. Learn to build, test and deploy AI-driven optimization systems that deliver real performance gains.

  13. Deriving Algorithms
    Deriving Algorithms
    Reading, Diagnosing, Building: Twenty-Seven Worked Derivations and 285 Problems That Teach You to Find an Algorithm Instead of Recalling One
    Hatem M.

    Most algorithm books are catalogues: here is a technique, here is its proof, here are exercises. This one withholds the name of every technique until after you have built it.

  14. The AI Forensics Handbook
    The AI Forensics Handbook
    Detection and Analysis of Artificially Generated Text, Images, Video, and Audio
    Steve Publications

    AI-generated content is everywhere, but how do you know what is real? The AI Forensics Handbook explores the science behind detecting synthetic text, images, video and audio, revealing the signals AI leaves behind and the methods used to uncover them. Practical, rigorous and grounded in real-world limitations, this is a guide to understanding what detection can really prove.

  15. Building High-Performance Compression Systems
    Building High-Performance Compression Systems
    bzip3 and Beyond
    Steve Publications

    What really makes a compression system fast, efficient and effective? Using bzip3 as a practical case study, this book breaks down the building blocks behind modern compression, from data transforms and match finding to entropy coding and parallel processing. Learn how to design, implement and tune compression systems for real-world performance.