Programming

Cube Walking

What is the shortest distance to get from one corner of a unit cube to the extreme opposite corner, without leaving the surface of the cube?

Stacking Paper

The chance of winning the lottery is 1 in 100 million. Ifyou stacked all 100 million lottery tickets on top of another, how high would this stack be, in meters? Is the answer closest to:a)     Distance from New York to Boston?b)     Diameter of the earth?c)     Height of a 20-story apartment?d)     Length of Manhattan (north-south) at the longest stretch?e)     Height of Empire State Building?

Quick Dice Game

You roll a die until a number other than 1 appears. You get the same number of dollars as there are dots on the upturned face of the die. What’s the expected payoff to the game?
Tags: 

Defected Coin Slot

You have 10 coin slots, each capable of giving you at most 10 pennies. However, you know that one of the coin slots is defective, and gives you fake pennies that are lighter than the normal pennies by 0.1 gram. Suppose you have a digital balance and know the mass of a normal penny. Using the balance only once, how can you determine which of the coin slot gives you fake pennies?

How to Sell

You believe that you can sell your Economics book for $100 and advertise the book for that amount. However, your neighbor wants to “steal” your sale and advertises the same book for $50. It’s the first week of class, and you believe that there is quite an active market for the book. What should you and your neighbor do?

One Hundred Light Bulbs

There are 100 light bulbs lined up in a row, numbered consecutively from 1 to 100. All bulbs have their own switch and the switches are all currently turned off. There are 100 people lined up in a row, also numbered consecutively from 1 to 100. Person 1 enters the room and switches on every bulb. Person 2 enters room and switches off every second bulb (blubs 2,4, 6 ...). Person 3 enters the room and flips the switch on every third bulb (blubs 3, 6, 9 …). This continues for all 100 people who enter the room.A) What is the final state of bulb number 64?B) How many light bulbs are illuminated at the end, and which ones are they?

Pages

Subscribe to RSS - Programming