LOL... Really? That would be an automatic fail in the interview process where I currently work...SandeepMathew wrote:
I one MS question which i could'nt answer .. What is a virtual destructor ?
Runs far far away and hids in a bush ....
MS Riddle
- Colonel Kernel
- Member
- Posts: 1437
- Joined: Tue Oct 17, 2006 6:06 pm
- Location: Vancouver, BC, Canada
- Contact:
Re: MS Riddle
Top three reasons why my OS project died:
- Too much overtime at work
- Got married
- My brain got stuck in an infinite loop while trying to design the memory manager
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: MS Riddle
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 .... . Very emabarrassing
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: MS Riddle
Made a mistake again ,It was constructor not destructor , There are no virtual constructors , n that was the answer . I was not sure at that time
Re: MS Riddle
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
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
Re: MS Riddle
1) A human - this one never sits well as it's a bit metaphorical for me
2) A book.
Cheers,
Adam
2) A book.
Cheers,
Adam
Re: MS Riddle
Wow that was fast...
Oh well...
Jules
Oh well...
Jules
- Combuster
- 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
Your method works for the three provided cases, but not the general one, and hence not for the riddle in question.iammisc wrote: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.Combuster wrote:Nice attempt, but the answer to 4 turned out to be 4.
My method, however, works for your riddle.
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
So once again, kudo's for the attempt, but I hope this explains why it wasn't good enough.
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
Re: MS Riddle
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.
Re: MS Riddle
It's 178156259567 times 36. D'oh.
Every good solution is obvious once you've found it.
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
- Combuster
- 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
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?
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?
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
Re: MS Riddle
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.
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.
Re: MS Riddle
@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.
-
- Member
- Posts: 89
- Joined: Tue Feb 26, 2008 10:47 am
- Location: Sweden
Re: MS Riddle
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.
If you have all the information, you won't have to guess and it's not a riddle, it's a ... problem.
Re: MS Riddle
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. - ?
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 )
Derrick operating system: http://derrick.xf.cz (Slovak and English )