Skip to content

Instantly share code, notes, and snippets.

@ssirowy
ssirowy / gist:6392243
Last active December 22, 2015 00:49
Friday 8/30/13 Riddle of the week
(Answers below all questions)
WARMUP
---------------------------------------------------------------------------------------
Given a series of equalities that have been solved:
8809 = 6
7111 = 0
2172 = 0
6666 = 4
@ssirowy
ssirowy / gist:6553454
Last active December 23, 2015 00:29
ROTW 9/13/2013
PM me your answers. Do not answer directly into the channel
Part A) Last winter I found myself locked out of my house because I couldn't remember
the 5-digit code to open the garage door. I used the following facts to get inside.
1. The second and third digits add up to 9.
2. The first digit is equal to the second digit cubed.
3. The sum of the third and fifth digits is the smallest number with exactly five divisors.
4. The fourth digit is equal to 6 times the second-to-last digit.
5. None of the digits repeat.
@ssirowy
ssirowy / gist:6641279
Last active December 23, 2015 13:19
ROTW 9/20/2013
This is a 2 part problem. You must get both to win ROTW this week.
Part A) What mathematical symbol can be put between 5 and 9, to get a
number bigger than 5 and smaller than 9?
Answer: Put a decimal point between them and you get 5.9
Part B) Create a number using only the digits 4,4,3,3,2,2,1 and 1.
There are 8 digits here so the number will be 8 digits.
You have to make sure the ones are separated by one digit, the twos are separated by two digits,
@ssirowy
ssirowy / gist:6731415
Last active December 24, 2015 02:29
ROTW 9/27/2013
You must answer both to win ROTW. Please PM or email your answers to me.
A) Place the numbers 1 through 9 in the circles in the linked image, such that each side of
the triangle adds up to 17
http://www.expandyourmind.com/logicproblems/images/9numbers.gif
Answer: There are a number of answers, but one formula to get an answer is to put 1,
2 and 3 on the corners, and 7,8,9 on opposite sides. Then fill in the gaps with
@ssirowy
ssirowy / ROTW_10042013
Created October 4, 2013 17:31
ROTW: 10/4/2013
Multiple parts. You must get all to win ROTW
A) A man is walking down a road with a basket of eggs. As he is walking he meets
someone who buys one-half of his eggs plus one-half of an egg. He walks a little further
and meets another person who buys one-half of his eggs plus one-half of an egg. After
proceeding further he meets another person who buys one-half of his eggs plus one half
an egg. At this point he has sold all of his eggs, and he never broke an egg. How many
eggs did the man have to start with?
B) Sabrina gave Samantha as many dollars as Samantha started out with. Samantha
@ssirowy
ssirowy / gist:6904953
Last active December 25, 2015 02:49
Hump Day ROTW: 10/9/2013
You have to answer both to win today. Both parts are closely related, in fact starting B first may help
A) Think of binary numbers: sequences of 0's and 1's. How many n-digit binary numbers are
there that don't have two adjacent 1 bits? For example, for three-digit numbers,
five of the possible eight combinations meet the criteria:
000, 001, 010, 011, 100, 101, 110, 111.
What is the number for sequences of length 4, 5, 10, n?
B) Prove it with output from a little script/program you write in your favorite language
@ssirowy
ssirowy / gist:6939318
Created October 11, 2013 18:03
ROTW: (10/11/2013)
Multiple Choice Questions.
Section A
----------------------------------------------------------------------------
1. The first question with B as the correct answer is:
A. 1
B. 4
C. 3
@ssirowy
ssirowy / gist:7011630
Created October 16, 2013 17:29
Mid week ROTW (10/16)
You must answer both problems to win this week:
Programming Problem
A) if(condition)
printf("I love the");
else
printf(" C Language");
What should the condition be inside the if statement such that the code
snippet above will print "I Love the C Language" ?
@ssirowy
ssirowy / gist:7044991
Created October 18, 2013 17:31
ROTW 10/18/2013
You must answer both questions to win ROTW this week. Please PM or email your answers:
Warmup:
My cousin Mary dropped an earring in her coffee, but the earring did not get
wet. How can this be?
The Harem:
The story goes that the harem of the Great Tamerlane was protected by a door with many locks.
The vizier and four slaves were in charge of guarding the door.
@ssirowy
ssirowy / gist:7269318
Created November 1, 2013 18:04
ROTW: 11/1
There are two parts to this week's riddle of the week. You must answer both to win this week's ROTW
A) In an athletics contest between the army, the navy, and the air force, each team entered
three athletes in a particular race. The winning athlete scored 8 points, the runner-up 7,
third place 6, and so on down to none for last place.
Once the race was won, the judges needed a photograph to separate the first two army men to finish.
A member of the navy's team finished last. When the points were totaled, all three teams were
found to have the same score.