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
Colonel Kernel
Member
Member
Posts: 1437
Joined: Tue Oct 17, 2006 6:06 pm
Location: Vancouver, BC, Canada
Contact:

Re: MS Riddle

Post by Colonel Kernel »

SandeepMathew wrote::oops: :oops: :oops:
I one MS question which i could'nt answer .. What is a virtual destructor ?


Runs far far away and hids in a bush .... :( :(
LOL... Really? That would be an automatic fail in the interview process where I currently work... :P
Top three reasons why my OS project died:
  1. Too much overtime at work
  2. Got married
  3. My brain got stuck in an infinite loop while trying to design the memory manager
Don't let this happen to you!
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: MS Riddle

Post by DeletedAccount »

I doubted its existense , coz it doesnt fit the concept n I was correct . But i did not have the courage to say , so i said i have a doubt about its existence and i do not really know .... :oops: :oops: :oops: . Very emabarrassing :oops: :oops:
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: MS Riddle

Post by DeletedAccount »

:oops:
Made a mistake again ,It was constructor not destructor , There are no virtual constructors , :oops: :oops: n that was the answer . I was not sure at that time

:oops: :oops:
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: MS Riddle

Post by suthers »

This is a well know one but anyway:
1)What has 4 legs in the morning, 2 at noon and 3 in the evening?
2)What has a spine, but has no bones?

Jules
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: MS Riddle

Post by AJ »

1) A human - this one never sits well as it's a bit metaphorical for me :?
2) A book.

Cheers,
Adam
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: MS Riddle

Post by suthers »

Wow that was fast...
Oh well...

Jules
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 »

iammisc wrote:
Combuster wrote:Nice attempt, but the answer to 4 turned out to be 4. :(
I don't get it. Did you not write the riddle correctly? Or are you trying to use my algorithm to solve the riddle for 4 because for 4 the answer would be 1 not 4, according to my method.

My method, however, works for your riddle.
Your method works for the three provided cases, but not the general one, and hence not for the riddle in question.

Three things:
1) I had to translate it. In its original language there are several more occurrences where #letters = number/2
2) Your method is a general solution for any such problem. Given 3 points, you need a second degree polynomial to cover them all. You generated an equation of the same degree. Basically, any two properties that are not colinear can be used to generate a fit for this specific riddle. You could even now think of a different parameter and include it to make a third degree equation that would cover the 4-4 case and be exceptionally complex.
basically, you could fit ax²+bx+c to the riddle. (you constructed an au + bv + c, where u and v are not of the same order, just as x and x² aren't)
3) The solution is too complex. Given the circumstances of the riddle, even the most unintellectual person has to be able to solve it by hard, hence generating the solution must be very simple (once you know it, that is), and common people suck at maths :wink:

So once again, kudo's for the attempt, but I hope this explains why it wasn't good enough.
"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 ]
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: MS Riddle

Post by AndrewAPrice »

Decode this: 6413625345136 :) I've had it on my MSN personal message since June 2008 and nobody has got it yet.
My OS is Perception.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: MS Riddle

Post by Solar »

It's 178156259567 times 36. D'oh.

:P
Every good solution is obvious once you've found it.
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: MS Riddle

Post by AndrewAPrice »

Well sure, but it decodes to an English word.
My OS is Perception.
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 »

6413625345136
110 100 011 110 010 101 011 100 101 001 011 110
1101 0001 1110 0101 0101 1100 1010 0101 1110
D 1 E 5 5 C A 5 E
if its an bit error, "dies for (the) case"

Or did I just give you the hidden meaning? :D
"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 ]
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: MS Riddle

Post by AndrewAPrice »

Erm no..

It's not as simple as that.. (base system, big/little endien bits/digits, text encoding method, etc)

I'll tell you what, if it's not decoded by December I'll post the answer and how to decode it. :)
My OS is Perception.
iammisc
Member
Member
Posts: 269
Joined: Thu Nov 09, 2006 6:23 pm

Re: MS Riddle

Post by iammisc »

@Combuster: According to your riddle, there were only 3 cases. How can I expect to know these other cases that you speak of when you never mentioned them? I can only conclude that you did not write the riddle properly.
thomasloven
Member
Member
Posts: 89
Joined: Tue Feb 26, 2008 10:47 am
Location: Sweden

Re: MS Riddle

Post by thomasloven »

That's the whole point with a riddle, isn't it?
If you have all the information, you won't have to guess and it's not a riddle, it's a ... problem.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: MS Riddle

Post by inflater »

Classical Slovak riddles, pardon me if I would mis-translate anything (since it rhymes with the original):

It has a long beard, but doesn't look too smart. - What is it?
On wine he'll be out of pocket, on water he'll make money. - ?
Who will notice him, let him suppress, who wants to pet him, get yourself warned. Give to him stupidly and with greed, if you'll give him lard, he'll grow fast, when he'll grew up real high, he'll steal and rob, from your own house he'll pluck you hard and right in front of your eyes he'll destroy everything. - ?
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
Post Reply