MS Riddle

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

MS Riddle

Post by Omega »

MS is said to ask riddles during interviews and here is one I liked. This is old but fun. I am sure this will get solved quickly:
If you had an infinite supply of water and a 5 quart and 3 quart pail, how would you measure exactly 4 quarts?
Good Luck!
Free energy is indeed evil for it absorbs the light.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: MS Riddle

Post by Alboin »

Fill the 5. Dump 5 into 3. (Until 3 is full.) Throw away 3. Dump 5 into 3. Refill 5. Dump 5 into 3. 5 contains 4.
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: MS Riddle

Post by Brendan »

Hi,

Isn't a "quart" one of those sub-atomic particles from quantum physics??? :D


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: MS Riddle

Post by Alboin »

Isn't a "quart" one of those sub-atomic particles from quantum physics??? :D
Only if 't' is 'k', and, if that is the case, we have much darker issues at hand. 8)
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Re: MS Riddle

Post by Omega »

No quart is the place where I go to say, "I plead the 5th!" Seriously, that was easy, maybe stupid easy. Any riddles from you guys?
Free energy is indeed evil for it absorbs the light.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: MS Riddle

Post by Combuster »

Once upon there was a thief in the desert. He came upon a town which he wanted to enter, because he desperately needed some food. A guard was standing near the entrance, demanding people to give a passphrase.

The thief located the cactus nearest to the guard, and sat down behind it to eavesdrop on the guard when a man came along.

The guard demanded: what is the passphrase to 12?
The man answered 6, and was allowed entry.

Great, the thief thought sarcastically.

Another group passed by. The guard demanded the passphrase to the number 6
The answer turned out to be 3, and the thief noticed the pattern.

He walked up to the guard, and it asked the passphrase for the number 8. The thief responded 4, but instead of the expected passage, he was taken prison.

He later figured that the correct answer would have been 5, but he never knew why.

Do you? :twisted:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
iammisc
Member
Member
Posts: 269
Joined: Thu Nov 09, 2006 6:23 pm

Re: MS Riddle

Post by iammisc »

Combuster wrote:Once upon there was a thief in the desert. He came upon a town which he wanted to enter, because he desperately needed some food. A guard was standing near the entrance, demanding people to give a passphrase.

The thief located the cactus nearest to the guard, and sat down behind it to eavesdrop on the guard when a man came along.

The guard demanded: what is the passphrase to 12?
The man answered 6, and was allowed entry.

Great, the thief thought sarcastically.

Another group passed by. The guard demanded the passphrase to the number 6
The answer turned out to be 3, and the thief noticed the pattern.

He walked up to the guard, and it asked the passphrase for the number 8. The thief responded 4, but instead of the expected passage, he was taken prison.

He later figured that the correct answer would have been 5, but he never knew why.

Do you? :twisted:
Simple. You take the number the guard gives you and subtract from it 3 times the number of digits in the number.

12 is a two digit number so you would do: 12 - ( 3 * 2 ) = 6
6 is a one digit number so: 6 - ( 3 * 1 ) = 3
Therefore with 8, a 1-digit number, you should get: 8 - ( 3 * 1 ) = 5
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: MS Riddle

Post by Combuster »

Nice attempt, but the answer to 4 turned out to be 4. :(
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Korona
Member
Member
Posts: 1000
Joined: Thu May 17, 2007 1:27 pm
Contact:

Re: MS Riddle

Post by Korona »

twelve = 6 characters
six = 3 characters
eight = 5 characters
four = 4 characters
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: MS Riddle

Post by DeletedAccount »

You shall also learn how to bluff properly . Some questions are meant for bluffing only ...
You cannot possibly give a good answer in the given time constraints ....
eg
1) Redesign the ATM machine ?

2) Design a super duper pepper machine ?

list go'es on n on ...
Riddle asked to me was simple , involved solving a simple quadratic .
That's all
Regards
Sandeep Mathew
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: MS Riddle

Post by piranha »

SandeepMathew wrote:1) Redesign the ATM machine ?
The Automated teller machine machine?

That and the usage of "PIN number": Personal Identification Number Number.

What number do you cut in half to get zero?

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: MS Riddle

Post by Alboin »

What number do you cut in half to get zero?
Eight.
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: MS Riddle

Post by piranha »

What do these mean, or what are they, or whats the pattern:?
1)
11
23
58
13
21
34

2)
112358134711235813471123581347112358134711235813471123581347112358134711235813471123581347112358134711235813471123581347

3)
12->6->3->5->4->4

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
thomasloven
Member
Member
Posts: 89
Joined: Tue Feb 26, 2008 10:47 am
Location: Sweden

Re: MS Riddle

Post by thomasloven »

1) is the fibonnaci sequence with the digits grouped in pairs

1 1 2 3 5 8 13 21 34 55 89...
Korona
Member
Member
Posts: 1000
Joined: Thu May 17, 2007 1:27 pm
Contact:

Re: MS Riddle

Post by Korona »

I guess 2) is also a modification of the fibonacci sequence.
3) is the pattern Combuster posted: Each number is constructed by counting the letters of the previous number (written down as a word).
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Post Reply