Burning Ropes Puzzle: Measure 45 Minutes with Two Non-Uniform Ropes
5 min read The Burning Ropes Puzzle: Measure 45 Minutes with Two Ropes That Burn Unevenly The burning ropes puzzle is a famous […] Read article
// brain-teasers
Sharpen your creative problem-solving with classic brain teasers and logic puzzles.
5 min read The Burning Ropes Puzzle: Measure 45 Minutes with Two Ropes That Burn Unevenly The burning ropes puzzle is a famous […] Read article
3 min read Suppose you had a Stack class. Write a new class MaxStack which, in addition to push() and pop(), has a Read article
3 min read A typical programming interview question is “reverse a string, in place”. if you understand pointers, the solution is simple. even Read article
3 min read Problem: you have 100 doors in a row that are all initially closed. you make 100 passes by the doors Read article
4 min read Problem: you have two jars, 50 red marbles, 50 blue marbles. you need to place all the marbles into the Read article
3 min read problem: two trains enter a tunnel 200 miles long (yeah, its a big tunnel) travelling at 100 mph at the Read article
4 min read Problem: write the definition for this function without using any built-in functions. if pStr is null, return 0. if pStr Read article
3 min read Two MIT math grads bump into each other at Fairway on the upper west side. They haven’t seen each other Read article
4 min read Problem: you are given a sequence of numbers from 1 to n-1 with one of the numbers repeating only once. Read article
6 min read Five pirates have 100 gold coins. they have to divide up the loot. in order of seniority (suppose pirate 5 Read article
5 min read 100 fogcreek programmers are lined up in a row by an assassin. the assassin puts red and blue hats on them. Read article
4 min read A bad king has a cellar of 1000 bottles of delightful and very expensive wine. A neighbouring queen plots to Read article
3 min read You have three jars that are all mislabeled. one contains peanut butter jelly beans, another grape jelly jelly beans, and Read article
3 min read Problem: this one is a classic that many of you have probably already heard, but all the more reason why Read article
5 min read This is a card trick without the trick. there is no sleight of hand, no tricks up my sleeve, no Read article
What's missing, wrong, or worth adding? One line helps.
Sent — thank you. We read every one.