Buy New
-22%
$31.33$31.33
FREE delivery November 9 - 17
Ships from: BuyWorldwide Sold by: BuyWorldwide
Get it faster
$39.99$39.99
FREE delivery Monday, November 2
Ships from: Amazon.com Sold by: Amazon.com
Used - Very Good
$16.75$16.75
FREE delivery November 4 - 6
Ships from: Stellar Book Company Sold by: Stellar Book Company
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
The Recursive Book of Recursion: Ace the Coding Interview with Python and JavaScript
Purchase options and add-ons
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.
- ISBN-101718502028
- ISBN-13978-1718502024
- PublisherNo Starch Press
- Publication dateAugust 16, 2022
- LanguageEnglish
- Dimensions7.01 x 0.75 x 9.25 inches
- Print length328 pages
Frequently bought together

Customers who viewed this item also viewed
- Automate the Boring Stuff with Python, 3rd EditionPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Nov 2
- Dive Into Algorithms: A Pythonic Adventure for the Intrepid BeginnerPaperbackFREE ShippingGet it Nov 9 - 17
- Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled ExamplesPaperbackFREE ShippingGet it Nov 9 - 17
- Automate the Boring Stuff with Python Workbook: Projects and Exercises to Sharpen Your Python SkillsPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Nov 2
- Object-Oriented Python: Master OOP by Building Games and GUIsPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Nov 2
Customers also bought or read
- Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples
Paperback$31.63$31.63FREE delivery Nov 9 - 17 - Dive Into Algorithms: A Pythonic Adventure for the Intrepid Beginner
Paperback$31.31$31.31FREE delivery Nov 9 - 17 - Object-Oriented Python: Master OOP by Building Games and GUIs
Paperback$33.97$33.97Delivery Mon, Nov 2 - Algorithmic Thinking, 2nd Edition: Learn Algorithms to Level Up Your Coding Skills
Paperback$32.49$32.49Delivery Mon, Nov 2 - Think Like a Programmer: An Introduction to Creative Problem Solving
Paperback$27.30$27.30Delivery Mon, Nov 2 - Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code
Paperback$31.75$31.75FREE delivery Nov 9 - 17 - Graph Algorithms the Fun Way: Powerful Algorithms Decoded, Not Oversimplified
Paperback$44.00$44.00FREE delivery Nov 9 - 17 - Impractical Python Projects: Playful Programming Activities to Make You Smarter
Paperback$22.30$22.30Delivery Mon, Nov 2 - Beyond Cracking the Coding Interview: Pass Tough Coding Interviews, Get Noticed, and Negotiate Successfully (Cracking the Interview & Career)
Paperback$41.89$41.89FREE delivery Mon, Nov 2 - Modeling and Simulation in Python: An Introduction for Scientists and Engineers
Paperback$34.29$34.29FREE delivery Nov 9 - 17 - Grokking Algorithms, Second Edition: An illustrated guide for programmers and other curious people
Paperback$38.17$38.17FREE delivery Nov 9 - 17 - A Common-Sense Guide to Data Structures and Algorithms in Python, Volume 1: Level Up Your Core Programming Skills
Paperback$52.01$52.01FREE delivery Nov 9 - 12 - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data#1 Best SellerComputer Programming Structured Design
Paperback$19.99$19.99Delivery Mon, Nov 2 - Math for Deep Learning: What You Need to Know to Understand Neural Networks
Paperback$35.48$35.48FREE delivery Mon, Nov 2 - The Big Book of Small Python Projects: 81 Easy Practice Programs
Paperback$37.85$37.85FREE delivery Nov 9 - 17 - The Art of Clean Code: Best Practices to Eliminate Complexity and Simplify Your Life
Paperback$31.33$31.33FREE delivery Nov 9 - 17 - How Cybersecurity Really Works: A Hands-On Guide for Total Beginners
Paperback$29.94$29.94Delivery Mon, Nov 2 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$27.32$27.32Delivery Nov 8 - 13 - Code: The Hidden Language of Computer Hardware and Software#1 Best SellerMicrosoft Programming
Paperback$32.58$32.58Delivery Mon, Nov 2 - Cracking the Coding Interview: 189 Programming Questions and Solutions#1 Best SellerData Structure and Algorithms
Paperback$25.79$25.79Delivery Mon, Nov 2 - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Mon, Nov 2 - How Computers Really Work: A Hands-On Guide to the Inner Workings of the Machine
Paperback$31.63$31.63FREE delivery Nov 9 - 17 - A Common-Sense Guide to Data Structures and Algorithms, Second Edition: Level Up Your Core Programming Skills
Paperback$40.00$40.00FREE delivery Mon, Nov 2 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$41.78$41.78FREE delivery Nov 21 - 28
From the Publisher
About the Author
Al Sweigart is a software developer and tech book author living in Houston. Python is his favorite programming language, and he is the developer of several open source modules for it. His other books are freely available under a Creative Commons license on his website, Invent with Python.
About the Publisher
No Starch Press has published the finest in geek entertainment since 1994, creating both timely and timeless titles like Python Crash Course, Python for Kids, How Linux Works, and Hacking: The Art of Exploitation. An independent, San Francisco-based publishing company, No Starch Press focuses on a curated list of well-crafted books that make a difference. They publish on many topics, including computer programming, cybersecurity, operating systems, and LEGO. The titles have personality, the authors are passionate experts, and all the content goes through extensive editorial and technical reviews. Long known for its fun, fearless approach to technology, No Starch Press has earned wide support from STEM enthusiasts worldwide.
Editorial Reviews
Review
—John D. Cook
"... this book is a worthy read for a developer who wants to deepen their knowledge of advanced programming topics. While basic recursion is included in early programming curriculum, it typically stops at examples that can be reproduced with iteration. In this book, Al Sweigart starts are these basics and quickly expands to include types of algorithms that benefit from recursion, such as tree traversal and divide-and-conquer. Though focused on those actively interviewing for engineering roles, the book is also a good fit for professional development, an engineering book club, or a brain tickler for your technical book shelf. The real life projects at the end are especially informative, which is why I think... (this review 'recurs' to the beginning)"
—Adam DuVander, @adamd, Founder of EveryDeveloper
"I have felt for a long time that I had a pretty good handle on the subject of recursion . . . Thanks to Al Sweigart's new book, I think I'm far better informed than I was before. I will re-read this book a couple more times, just to add to the knowledge."
—Ronnie Tucker, Editor, Full Circle Magazine
About the Author
Product details
- Publisher : No Starch Press
- Publication date : August 16, 2022
- Language : English
- Print length : 328 pages
- ISBN-10 : 1718502028
- ISBN-13 : 978-1718502024
- Item Weight : 1.35 pounds
- Dimensions : 7.01 x 0.75 x 9.25 inches
- Best Sellers Rank: #1,160,804 in Books (See Top 100 in Books)
- #173 in JavaScript Programming (Books)
- #243 in Computer Algorithms
- #477 in Programming Algorithms
- Customer Reviews:
About the author

Al Sweigart is a software developer and tech book author living in Houston. He has written several programming books for beginners, including Automate the Boring Stuff with Python. His books are freely available under a Creative Commons license at his website https://inventwithpython.com.
Customer reviews
- 5 star4 star3 star2 star1 star4 star95%0%0%5%0%0%
- 5 star4 star3 star2 star1 star3 star95%0%0%5%0%0%
- 5 star4 star3 star2 star1 star1 star95%0%0%5%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customer reviews work on Amazon


















