The Recursive Book of Recursion

Ace the Coding Interview with Python and JavaScript

By Al Sweigart | Publisher: No Starch Press

About the book

An accessible yet rigorous crash course on recursive programming using Python and JavaScript examples.

Recursion has an intimidating reputation: it’s considered to be an advanced computer science topic frequently brought up in coding interviews. But there’s nothing magical about recursion.
 
The Recursive Book of Recursion uses Python and JavaScript examples to teach the basics of recursion, exposing the ways that it’s often poorly taught and clarifying the fundamental principles of all recursive algorithms. You’ll learn when to use recursive functions (and, most importantly, when not to use them), how to implement the classic recursive algorithms often brought up in job interviews, and how recursive techniques can help solve countless problems involving tree traversal, combinatorics, and other tricky topics.
 
This project-based guide contains complete, runnable programs to help you learn:
 

  • How recursive functions make use of the call stack, a critical data structure almost never discussed in lessons on recursion
  • How the head-tail and “leap of faith” techniques can simplify writing recursive functions
  • How to use recursion to write custom search scripts for your filesystem, draw fractal art, create mazes, and more
  • How optimization and memoization make recursive algorithms more efficient
  •  
    Al Sweigart has built a career explaining programming concepts in a fun, approachable manner. If you’ve shied away from learning recursion but want to add this technique to your programming toolkit, or if you’re racing to prepare for your next job interview, this book is for you.

    Editions of The Recursive Book of Recursion

    Paperback
    ISBN 9781718502024
    EBook
    ISBN 9781718502031

    Read an Excerpt

    An accessible yet rigorous crash course on recursive programming using Python and JavaScript examples.

    Recursion has an intimidating reputation: it’s considered to be an advanced computer science topic frequently brought up in coding interviews. But there’s nothing magical about recursion.
     
    The Recursive Book of Recursion uses Python and JavaScript examples to teach the basics of recursion, exposing the ways that it’s often poorly taught and clarifying the fundamental principles of all recursive algorithms. You’ll learn when to use recursive functions (and, most importantly, when not to use them), how to implement the classic recursive algorithms often brought up in job interviews, and how recursive techniques can help solve countless problems involving tree traversal, combinatorics, and other tricky topics.
     
    This project-based guide contains complete, runnable programs to help you learn:
     

  • How recursive functions make use of the call stack, a critical data structure almost never discussed in lessons on recursion
  • How the head-tail and “leap of faith” techniques can simplify writing recursive functions
  • How to use recursion to write custom search scripts for your filesystem, draw fractal art, create mazes, and more
  • How optimization and memoization make recursive algorithms more efficient
  •  
    Al Sweigart has built a career explaining programming concepts in a fun, approachable manner. If you’ve shied away from learning recursion but want to add this technique to your programming toolkit, or if you’re racing to prepare for your next job interview, this book is for you.

    Frequently Asked Questions

    What is The Recursive Book of Recursion about?

    An accessible yet rigorous crash course on recursive programming using Python and JavaScript examples.

    Recursion has an intimidating reputation: it’s considered to be an advanced computer science topic frequently brought up in coding interviews. But there’s nothing magical about recursion.
     
    The Recursive Book of Recursion uses Python and JavaScript examples to teach the basics of recursion, exposing the ways that it’s often poorly taught and clarifying the fundamental principles of all recursive algorithms. You’ll learn when to use recursive functions (and, most importantly, when not to use them), how to implement the classic recursive algorithms often brought up in job interviews, and how recursive techniques can help solve countless problems involving tree traversal, combinatorics, and other tricky topics.
     
    This project-based guide contains complete, runnable programs to help you learn:
     

  • How recursive functions make use of the call stack, a critical data structure almost never discussed in lessons on recursion
  • How the head-tail and “leap of faith” techniques can simplify writing recursive functions
  • How to use recursion to write custom search scripts for your filesystem, draw fractal art, create mazes, and more
  • How optimization and memoization make recursive algorithms more efficient
  •  
    Al Sweigart has built a career explaining programming concepts in a fun, approachable manner. If you’ve shied away from learning recursion but want to add this technique to your programming toolkit, or if you’re racing to prepare for your next job interview, this book is for you.

    What core themes, tropes, or subjects are explored in The Recursive Book of Recursion?

    Computing and Information Technology > Computer programming / software engineering > Algorithms and data structures

    Where can I read a sample of The Recursive Book of Recursion?

    You can read an official preview of the few pages here https://www.book2look.com/book/9781718502024

    Who is/are the Author/s of the book The Recursive Book of Recursion?

    Al Sweigart

    Who is the Publisher of the book The Recursive Book of Recursion?

    No Starch Press

    What are the ISBN numbers for the physical and digital editions?

    The Recursive Book of Recursion is available as paperback(ISBN 9781718502024) and ebook(ISBN 9781718502031)

    Where can I buy The Recursive Book of Recursion online or support local independent bookshops?

    You can buy The Recursive Book of Recursion from below

    Where can I buy The Recursive Book of Recursion?