# Category Archives: puzzles

## New Book: The Modern C# Challenge

My latest book, The Modern C# Challenge, is now available. It’s a collection of 100 programming challenges that let you test your ability in a wide variety of programming topics, many of which are not usually covered in traditional programming … Continue reading

## Solution: The 40 pound stone puzzle

This is the solution to The 40 pound stone puzzle. If you haven’t read the puzzle yet, click here before you read the solution. This puzzle similar to some of the puzzles in my book Interview Puzzles Dissected. The … Continue reading

Posted in algorithms, books, games, puzzles | | Comments Off on Solution: The 40 pound stone puzzle

## Puzzle: The 40 pound stone

This is a variation of a puzzle given on Car Talk. It’s similar to some of the puzzles in my book Interview Puzzles Dissected. A farmer uses a double-pan balance and a 40 pound stone to measure 40 pound weights: … Continue reading

Posted in algorithms, books, games, puzzles | | Comments Off on Puzzle: The 40 pound stone

## Make the basis for a card game in C#

The goal of this example is to provide some support for building a card game. It shows how to make a class to represent cards and to to tell what card is displayed in a PictureBox. It’s actually relatively straightforward. … Continue reading

Posted in games, graphics, image processing, puzzles | | 1 Comment

## Verify sizes of playing cards in C#

Recently I wanted to use some playing cards in a program so I looked online for some nice images. I could have included 55 or so separate images (including jokers and backs), but I decided it would be easier to … Continue reading

Posted in games, graphics, image processing, puzzles | | Comments Off on Verify sizes of playing cards in C#

## Five hats puzzle solution

If you haven’t read it yet, read the Five hats puzzle. Recall that the warden has three white hats and two black hats. If the first prisoner, Art, saw two black hats, then he would know that he had a … Continue reading

Posted in books, games, puzzles | | Comments Off on Five hats puzzle solution

## Five hats puzzle

This “hats puzzle” was described on December 26, 2016 on NPR’s Car Talk show. Sadly Tommy died in 2014 and the show was a rebroadcast so this puzzler has probably been used before. My book Interview Puzzles Dissected doesn’t include … Continue reading

Posted in books, games, puzzles | | Comments Off on Five hats puzzle

## Sample Puzzles for Interview Puzzles Dissected

Here are some sample puzzles (in PDF format) from my book Interview Puzzles Dissected. Three Birds – Calculate the total number of miles three birds fly while zigzagging between each other during a trip from New York to Philadelphia. We … Continue reading

## Book Errata Page: Interview Puzzles Dissected

This is the errata page for my book Interview Puzzles Dissected, Solving and Understanding Interview Puzzles. If you find mistakes, please post them here in the Leave a Reply box at the bottom of the page. If you have questions, … Continue reading

Posted in books, games, miscellany, puzzles | | 1 Comment

## Book Discussion Page: Interview Puzzles Dissected

This is a discussion page for my book Interview Puzzles Dissected, Solving and Understanding Interview Puzzles. Please post questions, thoughts, and suggestions here in the “Leave a Reply” box at the bottom of the page. I will moderate posts and … Continue reading

Posted in books, games, miscellany, puzzles | | 3 Comments