Home » Science & Technology » The Peg Puzzle Solved (Think Like a Programmer)

The Peg Puzzle Solved (Think Like a Programmer)

Written By V. Anton Spraul on Tuesday, Aug 22, 2017 | 09:46 PM

 
There's a puzzle with 15 holes and 14 pegs that I hadn't solved, and I thought, why am I solving this when I could write a program to solve it for me? You'll see the thoughts behind the program, the mistakes I made along the way, and some discussion of how we should choose approaches that match our programming strengths and weaknesses. Your comments and suggestions for future videos are welcome. "Think Like a Programmer" is a book I've written to help programmers with problem solving. If you've found that you are able to read programs and understand programming language syntax but aren't always confident writing programs from scratch, my book can help. For more information on the book head to one of these: Amazon page for the book: http://amzn.to/1MZlmlY My site: http://www.vantonspraul.com/TLAP My publisher's site: http://nostarch.com/thinklikeaprogrammer Connect with me: My site: http://vantonspraul.com Twitter: https://twitter.com/VAntonSpraul Facebook: https://www.facebook.com/ThinkLikeAProg