Re: [algogeeks] puzzle

2011-07-10 Thread aayush jain
thanx -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this gro

Re: [algogeeks] puzzle

2011-07-10 Thread vaibhav shukla
or it can be 2^3-2=6 3^3-3=24 4^3-4=60 5^3-5=120 6^3-6=210... On Sun, Jul 10, 2011 at 9:35 AM, Abhishek Soni wrote: > 6,24,60,120,210,336.. > > Explaination: > 0 + (6*1) = 6, > 6 + (6*3) = 24, > 24+ (6*6) = 60, > 60+ (6*10) = 120, > 120 + (6*15) = 210, > 210 + (6*21) = 336,... > > > > On Sat,

Re: [algogeeks] puzzle

2011-07-10 Thread udit sharma
6,24,60,120,210,336.. > > (N^3 - N) where N=2,3,4 -- Regards UDIT DU- MCA -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email

Re: [algogeeks] puzzle

2011-07-09 Thread Abhishek Soni
6,24,60,120,210,336.. Explaination: 0 + (6*1) = 6, 6 + (6*3) = 24, 24+ (6*6) = 60, 60+ (6*10) = 120, 120 + (6*15) = 210, 210 + (6*21) = 336,... On Sat, Jul 9, 2011 at 8:43 PM, aayush jain wrote: > plz give the logic of above series. > > -- > You received this message because you are subs

Re: [algogeeks] puzzle

2011-07-09 Thread aayush jain
plz give the logic of above series. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. Fo

Re: [algogeeks] puzzle

2011-07-09 Thread varun pahwa
6,24,60,120,210,240.. On Sun, Jul 10, 2011 at 3:29 AM, Abhishek Soni wrote: > is it > 6,24,60,120,210,336,.. ? > > > On Sat, Jul 9, 2011 at 4:03 AM, amit the cool wrote: > >> 6,24,60,120,_ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" g

Re: [algogeeks] puzzle

2011-07-09 Thread Abhishek Soni
is it 6,24,60,120,210,336,.. ? On Sat, Jul 9, 2011 at 4:03 AM, amit the cool wrote: > 6,24,60,120,_ > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe fro

Re: [algogeeks] puzzle

2011-07-09 Thread Nikita Jain
Can someone please suggest some good links to get questions related to number series ... Regards and Thanks Nikita Jain On Sat, Jul 9, 2011 at 8:25 PM, vaibhav shukla wrote: > 91,110,134,..163 ... > 6,24,60,120..210 > > On Sat, Jul 9, 2011 at 6:48 PM, Yogesh Yadav wrote: > >> 91,110,13416

Re: [algogeeks] puzzle

2011-07-09 Thread vaibhav shukla
91,110,134,..163 ... 6,24,60,120..210 On Sat, Jul 9, 2011 at 6:48 PM, Yogesh Yadav wrote: > 91,110,134161 i guess > 6,24,60,120210 > > > > On Sat, Jul 9, 2011 at 5:46 PM, Aman Goyal wrote: > >> 210 for the last one you posted >> >> >> On Sat, Jul 9, 2011 at 4:33 PM, amit the cool wrote:

Re: [algogeeks] puzzle

2011-07-09 Thread Yogesh Yadav
91,110,134161 i guess 6,24,60,120210 On Sat, Jul 9, 2011 at 5:46 PM, Aman Goyal wrote: > 210 for the last one you posted > > > On Sat, Jul 9, 2011 at 4:33 PM, amit the cool wrote: > >> 6,24,60,120,_ >> >> -- >> You received this message because you are subscribed to the Google Groups >>

Re: [algogeeks] puzzle

2011-07-09 Thread Aman Goyal
210 for the last one you posted On Sat, Jul 9, 2011 at 4:33 PM, amit the cool wrote: > 6,24,60,120,_ > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe fr

[algogeeks] puzzle

2011-07-09 Thread amit the cool
6,24,60,120,_ -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this

[algogeeks] puzzle

2011-07-09 Thread amit the cool
find d next: 91,110,134,_ -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options

Re: [algogeeks] puzzle

2011-07-08 Thread Aman Goyal
Now let x be the answer we want, the number of drops required. So if the first egg breaks maximum we can have x-1 drops and so we must always put the first egg from height x. So we have determined that for a given x we must drop the first ball from x height. And now if the first drop of the first

Re: [algogeeks] puzzle

2011-07-07 Thread Sumit chauhan
@sunny dude i got so excited after finding this solution i did not bother to check for 14 -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send em

Re: [algogeeks] puzzle

2011-07-07 Thread sunny agrawal
@Sumit lets consider the case the Egg does not break even from 100th floor in your case u will get to know the answer in 8th trial.after 91 trying from 100 but worst case solution is 16 for your solution. we can do better by starting at 14 as above explained 14,27,39,50,60,69,77,84,90,95,99,10

Re: [algogeeks] puzzle

2011-07-07 Thread Sumit chauhan
@ Tushar the answer is 16 and i have proved it. if it is 14 , then prove it. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algog

Re: [algogeeks] puzzle

2011-07-07 Thread Tushar Bindal
Sumit, the answer is 14 I think the example of 16 that they take on careerplus is probably confusing you. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from thi

Re: [algogeeks] puzzle

2011-07-07 Thread Anurag atri
The answer is 14 . On Thu, Jul 7, 2011 at 11:25 PM, Sumit chauhan wrote: > > The ans is 16 because :- > if we drop from 16th floor and if egg1 breaks floor to be tested is b/w > 1-16 . Then start from floor 1 with egg2 and floor from which it breaks > first is obtained and will lie b/w 1-16. the

Re: [algogeeks] puzzle

2011-07-07 Thread Sumit chauhan
The ans is 16 because :- if we drop from 16th floor and if egg1 breaks floor to be tested is b/w 1-16 . Then start from floor 1 with egg2 and floor from which it breaks first is obtained and will lie b/w 1-16. the attempts are no more than 16. however If egg1 doesn't break on 16 floor then try on (

[algogeeks] Puzzle

2011-07-07 Thread swetha rahul
At a movie theater, the manager announces that they will give a free ticket to the first person in line whose birthday is the same as someone who has already bought a ticket. You have the option of getting in line at any time. Assuming that you don't know anyone else's birthday, that birthdays are

Re: [algogeeks] puzzle

2011-07-06 Thread aseem garg
Suppose u start from x floor. Two cases arise...the egg breaks or it does not. If it doesthen u have to move linearly from first floor. till x-1 floor..Max attempts reqd. = x If it does not break.take a jump of x-1 because ur number of attempts has already increased by1. .

Re: [algogeeks] puzzle

2011-07-06 Thread TIRU REDDY
s(s+1)/2 must be close to 100. The best possible number is 14. try from 14th floor. next from 14+13th floor. next from 14+13+12th floor. Worest case number of attempts = 14. Best Regards, T V Thirumala Reddy Engineer, Qualcomm India Private Ltd. 1540C30, 15th Floor, Building #9, Mindspace, H

Re: [algogeeks] puzzle

2011-07-06 Thread Sriganesh Krishnan
@tiru and @aseem: explanation pls...! On Wed, Jul 6, 2011 at 11:11 PM, TIRU REDDY wrote: > 14 > > On 6 Jul 2011 22:35, "shiv narayan" wrote: > > > * You are given 2 eggs. > * You have access to a 100-storey building. > * Eggs can be very hard or very fragile means it may break if dropped > fro

Re: [algogeeks] puzzle

2011-07-06 Thread TIRU REDDY
14 On 6 Jul 2011 22:35, "shiv narayan" wrote: * You are given 2 eggs. * You have access to a 100-storey building. * Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100 th floor.Both eggs are identical. * You need to

Re: [algogeeks] puzzle

2011-07-06 Thread Tushar Bindal
@Navneet Didn't get your point -- Tushar Bindal Computer Engineering Delhi College of Engineering Mob: +919818442705 E-Mail : tushicom...@gmail.com Website: www.jugadengg.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this

Re: [algogeeks] puzzle

2011-07-06 Thread Navneet Gupta
Just to let you guys know it's a good legitimate problem with no trick answer. People who don't know the solution should try. On Wed, Jul 6, 2011 at 10:44 PM, Tushar Bindal wrote: > Eggs can never break the building. > So dropping the eggs won't break the building - whether you drop them from > 1

Re: [algogeeks] puzzle

2011-07-06 Thread aseem garg
14 attempts Aseem On Wed, Jul 6, 2011 at 10:44 PM, Tushar Bindal wrote: > Eggs can never break the building. > So dropping the eggs won't break the building - whether you drop them from > 1st floor or 100th floor. > > > On Wed, Jul 6, 2011 at 10:42 PM, Sriganesh Krishnan <2448...@gmail.com>wrot

Re: [algogeeks] puzzle

2011-07-06 Thread Tushar Bindal
Eggs can never break the building. So dropping the eggs won't break the building - whether you drop them from 1st floor or 100th floor. On Wed, Jul 6, 2011 at 10:42 PM, Sriganesh Krishnan <2448...@gmail.com>wrote: > i think this puzzle follows arithmetic progression...i'm not sure > though...does

Re: [algogeeks] puzzle

2011-07-06 Thread Tushar Bindal
100th floor is the answer On Wed, Jul 6, 2011 at 10:35 PM, shiv narayan wrote: > > * You are given 2 eggs. > * You have access to a 100-storey building. > * Eggs can be very hard or very fragile means it may break if dropped > from the first > floor or may not even break if dropped from 100 th f

Re: [algogeeks] puzzle

2011-07-06 Thread Sriganesh Krishnan
i think this puzzle follows arithmetic progression...i'm not sure though...does anybody have a clean explanation for this? On Wed, Jul 6, 2011 at 10:35 PM, shiv narayan wrote: > > * You are given 2 eggs. > * You have access to a 100-storey building. > * Eggs can be very hard or very fragile means

[algogeeks] puzzle

2011-07-06 Thread shiv narayan
* You are given 2 eggs. * You have access to a 100-storey building. * Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100 th floor.Both eggs are identical. * You need to figure out the highest floor of a 100-storey bui

Re: [algogeeks] Puzzle

2011-07-06 Thread Tushar Bindal
Let speed of boat be x miles/hr Let speed of river be s miles/hr First Method: Hat comes down 1 mile in 10 minutes. Hat comes with flow of river only. So its speed is equal to speed of river. In 60 minutes, it will travel 6 miles. thus, s = 6 miles/hr Second Method: Distance travelled upward by b

[algogeeks] Puzzle

2011-07-06 Thread swetha rahul
Hi, A son and father goes for boating in river upstream . After rowing for 1 mile son notices the hat of his fathe falling in the river.After 5 min. he tells his father that his hat has fallen. So they turn round and are able to pick the hat at the point from where they began boating af

Re: [algogeeks] puzzle

2011-07-06 Thread amit kumar
thanx guys On Wed, Jul 6, 2011 at 2:40 PM, udit sharma wrote: > (5*5)+(!5)/(5+5) and (((5+5)/5)^5)+5 > > -- > Regards > UDIT > DU- MCA > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algog

Re: [algogeeks] puzzle

2011-07-06 Thread udit sharma
(5*5)+(!5)/(5+5) and (((5+5)/5)^5)+5 -- Regards UDIT DU- MCA -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+uns

Re: [algogeeks] puzzle

2011-07-06 Thread bagaria.ka...@gmail.com
On Wed, Jul 6, 2011 at 1:23 PM, amit the cool wrote: >Can you make a target number 37 by using five 5s? You can > use any > math operator as you want. There are at least two different ways. > 5 5 5 5 5 > > (((5+5)/5)^5)+5 ((10/5)^5)+5 (2^5)+5 32+5=37 > -- > You received this

[algogeeks] puzzle

2011-07-06 Thread amit the cool
Can you make a target number 37 by using five 5s? You can use any math operator as you want. There are at least two different ways. 5 5 5 5 5 -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send ema

[algogeeks] PUZZLE

2011-06-27 Thread Bhavesh agrawal
All the nine digits are arranged here so as to form four square numbers: 9 81 324 576 How would you put them together so as to form single smallest possible square number and a single largest possible square number.. 139854276 and 923187456 are the answers given eve

Re: [algogeeks] puzzle

2011-06-26 Thread D.N.Vishwakarma@IITR
3 mice . On Sun, Jun 26, 2011 at 6:13 PM, ArPiT BhAtNaGaR < arpitbhatnagarm...@gmail.com> wrote: > 3 > > > On Mon, Jun 27, 2011 at 2:10 AM, amit the cool wrote: > >> There are 6 beer bottle nd one is poisoned. we have mice who will die >> within 14 hrs after drinkin poisned beer. In 24 hrs we hav

Re: [algogeeks] puzzle

2011-06-26 Thread ArPiT BhAtNaGaR
3 On Mon, Jun 27, 2011 at 2:10 AM, amit the cool wrote: > There are 6 beer bottle nd one is poisoned. we have mice who will die > within 14 hrs after drinkin poisned beer. In 24 hrs we have to find > poisoned beer bottle. How many no of mice we require to find out > poisoned bottle. > > -- > You

[algogeeks] puzzle

2011-06-26 Thread amit the cool
There are 6 beer bottle nd one is poisoned. we have mice who will die within 14 hrs after drinkin poisned beer. In 24 hrs we have to find poisoned beer bottle. How many no of mice we require to find out poisoned bottle. -- You received this message because you are subscribed to the Google Groups

[algogeeks] Puzzle Digest Of The Week [6th-June to 10th June]

2011-06-11 Thread Lavesh Rawat
*Puzzle Digest Of The Week 6th-June to 10th June* * * * http://dailybrainteaser.blogspot.com/2011/06/find-next-number-in-series-10-june.html?lavesh=lavesh * * * * http://dailybrainteaser.blogspot.com/2011/06/secret-code-puzzle-9-june.html?lavesh=lavesh * * * * http://dailybrainteaser.blogspot.com/2

[algogeeks] Puzzle

2011-06-09 Thread LALIT SHARMA
A helicopter drops two trains, each on a parachute, onto a straight infinite railway line. There is an undefined distance between the two trains. Each faces the same direction, and upon landing, the parachute attached to each train falls to the ground next to the train and detaches. Each train has

[algogeeks] Puzzle Digest Of The Week 23May - 27May

2011-05-28 Thread Lavesh Rawat
*Hi* * * *Puzzle Digest Of The Week 23May - 27May* * http://dailybrainteaser.blogspot.com/2011/05/akbar-birbal-tale-27-may.html?lavesh=lavesh * * * * http://dailybrainteaser.blogspot.com/2011/05/mystery-puzzle-sherlock-holmes-26-may.html ?**lavesh=lavesh* * * * http://dailybrainteaser.blogspot.com

Re: [algogeeks] Puzzle

2011-05-27 Thread Aakash Johari
Is it the minimum required matches to ensure for semifinals? On Fri, May 27, 2011 at 6:06 AM, Rishabh Maurya wrote: > suppose bottom 4 teams have won least matches and upper 4 teams have won > equal number of matches ... > > 1 -> x > 2 -> x > 3 -> x > 4 -> x > > 5 -> 6 > 6 -> 4 > 7 -> 2 > 8 ->

Re: [algogeeks] Puzzle

2011-05-27 Thread Rishabh Maurya
suppose bottom 4 teams have won least matches and upper 4 teams have won equal number of matches ... 1 -> x 2 -> x 3 -> x 4 -> x 5 -> 6 6 -> 4 7 -> 2 8 -> 0 total matches are 56 and let upper four teams have won x matches each so x = (56-(6+4+2+0))/4 x = 11 so in this way to ensure qualific

Re: [algogeeks] Puzzle

2011-05-27 Thread Arpit Mittal
could you please explain how? On Fri, May 27, 2011 at 3:45 AM, varun pahwa wrote: > i think 11. > > On Fri, May 27, 2011 at 3:06 PM, Arpit Mittal wrote: > >> 8? >> >> >> On Fri, May 27, 2011 at 2:26 AM, anil chopra >> wrote: >> >>> 11 >>> >>> On Fri, May 13, 2011 at 12:14 AM, amit wrote: >>> >>

Re: [algogeeks] Puzzle

2011-05-27 Thread varun pahwa
i think 11. On Fri, May 27, 2011 at 3:06 PM, Arpit Mittal wrote: > 8? > > > On Fri, May 27, 2011 at 2:26 AM, anil chopra wrote: > >> 11 >> >> On Fri, May 13, 2011 at 12:14 AM, amit wrote: >> >>> Consider a series in which 8 teams are participating. each team plays >>> twice with all other teams.

Re: [algogeeks] Puzzle

2011-05-27 Thread Arpit Mittal
8? On Fri, May 27, 2011 at 2:26 AM, anil chopra wrote: > 11 > > On Fri, May 13, 2011 at 12:14 AM, amit wrote: > >> Consider a series in which 8 teams are participating. each team plays >> twice with all other teams. 4 of them will go to the semi final.How >> many matches should a team win, so th

Re: [algogeeks] Puzzle

2011-05-27 Thread anil chopra
11 On Fri, May 13, 2011 at 12:14 AM, amit wrote: > Consider a series in which 8 teams are participating. each team plays > twice with all other teams. 4 of them will go to the semi final.How > many matches should a team win, so that it will ensure that it will go > to semi finals.? > > -- > You

[algogeeks] Puzzle Digest Of The Week 16May - 20May

2011-05-21 Thread Lavesh Rawat
*Hi* * * *Puzzle Digest Of The Week 16May - 20May* * * * http://dailybrainteaser.blogspot.com/2011/05/logic-riddle-20-may.html?lavesh=lavesh * * * * http://dailybrainteaser.blogspot.com/2011/05/is-this-maths-riddle-19-may.html ?**lavesh=lavesh* * * * http://dailybrainteaser.blogspot.com/2011/05/gr

Re: [algogeeks] PUZZLE

2011-05-21 Thread Bhavesh agrawal
everyone ,plz post some solution or explanation.. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegrou

Re: [algogeeks] PUZZLE

2011-05-20 Thread arjoo kumar
534 is the correct answer On Fri, May 20, 2011 at 8:47 AM, Bhavesh agrawal wrote: > > > 1 elephant can take 1000 banana at a time and eat 1 banana after each 1km > travel. > total bananas are 3000 and distance have to travel from A to B is 1000km. > > So how many max bananas he can take from A to

Re: [algogeeks] PUZZLE

2011-05-20 Thread Apoorve Mohan
@piyush: how??? On Sat, May 21, 2011 at 12:19 AM, Piyush Sinha wrote: > 500 > > On 5/20/11, Bhavesh agrawal wrote: > > 1 elephant can take 1000 banana at a time and eat 1 banana after each 1km > > travel. > > total bananas are 3000 and distance have to travel from A to B is 1000km. > > > > So ho

Re: [algogeeks] PUZZLE

2011-05-20 Thread Piyush Sinha
500 On 5/20/11, Bhavesh agrawal wrote: > 1 elephant can take 1000 banana at a time and eat 1 banana after each 1km > travel. > total bananas are 3000 and distance have to travel from A to B is 1000km. > > So how many max bananas he can take from A to B. (he'll eat in return > travel too) > > -

[algogeeks] PUZZLE

2011-05-20 Thread Bhavesh agrawal
1 elephant can take 1000 banana at a time and eat 1 banana after each 1km travel. total bananas are 3000 and distance have to travel from A to B is 1000km. So how many max bananas he can take from A to B. (he'll eat in return travel too) -- You received this message because you are subscribed

Re: [algogeeks] Puzzle

2011-05-14 Thread Kunal Patil
Each team plays a total of 14 matches. Top 50% teams(4 out of 8) qualify for the semis. Thus, u must win more than 50% matches to be sure to get into semis. Thus, 8 is the answer. On Fri, May 13, 2011 at 12:14 AM, amit wrote: > Consider a series in which 8 teams are participating. each team play

[algogeeks] Puzzle Digest Of The Week 9May - 13May

2011-05-14 Thread Lavesh Rawat
*Hi* *Puzzle Digest Of The Week 9May - 13May* * http://dailybrainteaser.ablogspot.com/2011/05/fun-math-puzzle-13-may.html?lavesh=lavesh * * * *http://dailybrainteaser.blogspot.com/2011/05/who-is-shortest-12-may.html?** lavesh=lavesh* * * *http://dailybrainteaser.blogspot.com/2011/05/fun-teaser-1

[algogeeks] Puzzle

2011-05-13 Thread amit
Consider a series in which 8 teams are participating. each team plays twice with all other teams. 4 of them will go to the semi final.How many matches should a team win, so that it will ensure that it will go to semi finals.? -- You received this message because you are subscribed to the Google G

[algogeeks] Puzzle For Puzzled Minds -How Many Rounds..???

2011-02-24 Thread bittu
If you had 5,623 participants in a tournament, how many games would need to be played to determine the winner According to me if Tournament strategy is is used then i think its ok... After each round, you would have half the number that started the previous round; except if it were an odd numbe

Re: [algogeeks] Puzzle For Puzzled Minds - Robots

2011-02-22 Thread Nikhil Jindal
Same prog for both the robots: *Label1 : Go left* * Skip next if oil in my path* * Go to Label1* *Label2 : Go left* * Go left* * Go to Label2* Both robots go left with speed one move per 3 second. After one of them finds an oil spot in its way

[algogeeks] Puzzle For Puzzled Minds - Robots

2011-02-16 Thread bittu
Two robots are placed at different points on a straight line of infinite length. When they are first placed down, they each spray out some oil to mark their starting points. You must program each robot to ensure that the robots will eventually crash into each other. A program can consist of the f

Re: [algogeeks] Puzzle Will Stuck

2011-02-08 Thread Rajeev Kumar
u can find more explanation here: http://www.techinterview.org/post/526370758/100-doors-in-a-row On Tue, Feb 8, 2011 at 12:52 PM, sunny agrawal wrote: > finally all square number gates will be open > > > On Wed, Feb 9, 2011 at 2:10 AM, bittu wrote: > >> There are N doors in a row numbered from 1

Re: [algogeeks] Puzzle Will Stuck

2011-02-08 Thread sunny agrawal
finally all square number gates will be open On Wed, Feb 9, 2011 at 2:10 AM, bittu wrote: > There are N doors in a row numbered from 1 to N. Initially all are > closed. > Then you make N passes by the N doors. In pass 1 you toggle the all > the doors (1,2,3,4)starting from the first door. In

[algogeeks] Puzzle Will Stuck

2011-02-08 Thread bittu
There are N doors in a row numbered from 1 to N. Initially all are closed. Then you make N passes by the N doors. In pass 1 you toggle the all the doors (1,2,3,4)starting from the first door. In the second pass you toggle every second door(2,4,6,8,...). In the third pass you toggle all third do

[algogeeks] Puzzle For Puzzled Minds

2011-02-08 Thread bittu
This is an altogether different one in the same scenario. You have to make 125 packets of sugar with first one weighing 1 kg, second 2 kg, third 3 kg etc ...and 125th one weighing 125kg.You can only use one pan of the common balance for measurement for weighing sugar, the other pan had to be used f

Re: [algogeeks] Puzzle to Puzzle you Part _ 1

2011-02-02 Thread sourabh jakhar
he takes 10 card from the piles and reverse . so there are two piles 1. 42 2.10 there are 10 cases possible 1. out of 10 cards in second pile all are down in it and all up card are in other pile than you simply reverse the second pile. 2. out of 10 cards in second pile all are down except one

Re: [algogeeks] Puzzle to Puzzle you Part _ 1

2011-02-02 Thread Rajiv Podar
Hi Bhavesh, Blind man has to create two piles of his own so he dont know which pile have how much up face cards Thanks & Regards, Rajiv Podar On Thu, Feb 3, 2011 at 10:42 AM, Bhavesh agrawal wrote: > IS FACING UP CARDS ARE RANDOMLY DISTRIBUTED IN THE PILE > > On Thu, Feb 3, 2011 at 9:

Re: [algogeeks] Puzzle to Puzzle you Part _ 1

2011-02-02 Thread Bhavesh agrawal
IS FACING UP CARDS ARE RANDOMLY DISTRIBUTED IN THE PILE On Thu, Feb 3, 2011 at 9:02 AM, Ricky wrote: > Hi, > > I have come up with one interesting puzzle so I thought of discussing > with you guys: > > "A blind man is given deck of 52 cards with 10 card facing up and rest > are facing down.

Re: [algogeeks] Puzzle to Puzzle you Part _ 1

2011-02-02 Thread Gajendra Dadheech
These are quite old puzzles buddy. He take 10 cards from the pile and reverse them. SOLVED Thanks and regards, Gajendra Dadheech On Thu, Feb 3, 2011 at 9:02 AM, Ricky wrote: > Hi, > > I have come up with one interesting puzzle so I thought of discussing > with you guys: > > "A blind man is gi

[algogeeks] Puzzle to Puzzle you Part _ 1

2011-02-02 Thread Ricky
Hi, I have come up with one interesting puzzle so I thought of discussing with you guys: "A blind man is given deck of 52 cards with 10 card facing up and rest are facing down. He need to create two piles not necessarily of same height in order to have same number of up cards in both." I would p

Re: [algogeeks] Puzzle

2011-01-27 Thread ankit agarwal
(9*9-1)/(9-1) On Thu, Jan 27, 2011 at 4:55 PM, nishaanth wrote: > (91-1)/9 > > > On Wed, Jan 26, 2011 at 11:07 PM, Apoorve Mohan wrote: > >> 9 + 1 - ( 1 / 9 ) >> >> >> On Wed, Jan 26, 2011 at 10:29 PM, satish wrote: >> >>> 19-(9/1). >>> >>> -- >>> You received this message because you are subs

Re: [algogeeks] Puzzle

2011-01-27 Thread nishaanth
(91-1)/9 On Wed, Jan 26, 2011 at 11:07 PM, Apoorve Mohan wrote: > 9 + 1 - ( 1 / 9 ) > > > On Wed, Jan 26, 2011 at 10:29 PM, satish wrote: > >> 19-(9/1). >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, se

Re: [algogeeks] Puzzle

2011-01-26 Thread Apoorve Mohan
9 + 1 - ( 1 / 9 ) On Wed, Jan 26, 2011 at 10:29 PM, satish wrote: > 19-(9/1). > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send e

Re: [algogeeks] Puzzle

2011-01-26 Thread satish
19-(9/1). -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this gro

Re: [algogeeks] Puzzle

2011-01-26 Thread neha lawaria
is it neccesary to use all four operators or we can use any combination?? i mean...can we use an operator twice?? On Wed, Jan 26, 2011 at 7:42 PM, may.I.answer wrote: > You have four numbers 1 , 1 , 9 ,9 . > Now using these four and operator + , - , * ,/ and parentheses(if > required) your hav

Re: [algogeeks] Puzzle

2011-01-26 Thread sharad kumar
11-(9/9) On Wed, Jan 26, 2011 at 7:42 PM, may.I.answer wrote: > You have four numbers 1 , 1 , 9 ,9 . > Now using these four and operator + , - , * ,/ and parentheses(if > required) your have to get 10. > > -- > You received this message because you are subscribed to the Google Groups > "Algorith

[algogeeks] Puzzle

2011-01-26 Thread may.I.answer
You have four numbers 1 , 1 , 9 ,9 . Now using these four and operator + , - , * ,/ and parentheses(if required) your have to get 10. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups

Re: [algogeeks] Puzzle Will Stuck

2011-01-04 Thread Ankur Khurana
just try to make first row and first column zero with minimum no of moves. after they have become zero , check in matrix for any remaining on state. it there is on state , then it is impossible else , that you have done it. On Tue, Jan 4, 2011 at 4:40 PM, Ankur Khurana wrote: > it's exactly the

Re: [algogeeks] Puzzle Will Stuck

2011-01-04 Thread Ankur Khurana
it's exactly the same question as Buttons on codechef. search this forum , it have been discussed before On Tue, Jan 4, 2011 at 4:13 PM, bittu wrote: > There is a lock which is an N by N grid of switches. Each switch can > be in one of two states (on/off). The lock is unlocked if all the > switc

[algogeeks] Puzzle Will Stuck

2011-01-04 Thread bittu
There is a lock which is an N by N grid of switches. Each switch can be in one of two states (on/off). The lock is unlocked if all the switches are on. The lock is built in such a way that, if you toggle some switch, all the switches in its row and its column toggle too Give an algorithm which, gi

Re: [algogeeks] puzzle

2011-01-02 Thread jai gupta
@swayambhoo: ofcourse a cubical room must me symmetrical at allcorners, Hence, neway it will reach in min_dis=sqrt((4+3)^2+5^2)=8.6 -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.co

Re: [algogeeks] puzzle

2010-12-31 Thread swayambhoo jain
See attached pdf for understanding the second part. On Fri, Dec 31, 2010 at 10:24 AM, swayambhoo jain wrote: > Sorry I was wrong on the second question : > Correct answer is : depending on the corner in which the ant is answers can > be : > > sqrt( (3+5)^2 + 4^2 ) or sqrt( (4+5)^2 + 3^2 ) > > >

Re: [algogeeks] puzzle

2010-12-31 Thread swayambhoo jain
Sorry I was wrong on the second question : Correct answer is : depending on the corner in which the ant is answers can be : sqrt( (3+5)^2 + 4^2 ) or sqrt( (4+5)^2 + 3^2 ) On Fri, Dec 31, 2010 at 10:08 AM, swayambhoo jain wrote: > 1) do two coin tosses : > > head , head --> 1st dessert > head

Re: [algogeeks] puzzle

2010-12-31 Thread swayambhoo jain
1) do two coin tosses : head , head --> 1st dessert head , tail ---> 2nd dessert tail , head ---> 3rd dessert if coin is biased... you can do in three coin tosses : tail , head , head --> 1st dessert head, tail , head --> 2nd dessert head, head , tail --> 3rd dessert 2) sqrt(9+16+25) = 5sqrt(2)

Re: [algogeeks] puzzle

2010-12-31 Thread Anuj Kumar
in case the coin is not biased, we can flip the coin twice and define the rules as if {H,H} comes then ignore it i.e. dont take it as a flip and the 3 other events would be valid onces and could occur with equal probabilities. In case of a biased coin please specify the probability of getting head

[algogeeks] puzzle

2010-12-31 Thread bittu
At a restaurant, how can Veronica choose one out of three desserts with equal probability with the help of a coin? What if the coin is biased and the bias is unknown? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send

[algogeeks] Puzzle .

2010-06-25 Thread sharad kumar
There are two robot standing on two ends of a line, somewhere on the line there is a point and I need to make both robot reach that point. Same program is running in both robots. Only instruction allowed is : Move Left, Move Right, Am I on point. Tell how both the robots will meet. -- You receive

[algogeeks] Puzzle

2010-06-25 Thread ashish kumar
You have a DNA string that you wish to analyze. Of particular interest is which intervals of the string represent individual genes. You have a number of "gene predictions", each of which assigns a score to an interval within the DNA string, and you want to find the subset of predictions such that t

Re: [algogeeks] Puzzle:-

2010-06-20 Thread janak
This is classical problem of dynamic programming. step-1: For each cell, calculate the possibility of knight (horse) staying inside chess board after 1 step. For example: corner cells will have possibility of 2/8. Now, for each cell maintain valid steps (i.e. where all it can step..) step-2: Now

[algogeeks] Puzzle:-

2010-06-20 Thread sharad
On a empty chessboard, a horse starts from a point( say location x,y) and it starts moving randomly, but once it moves out of board, it cant come inside. So what is the total probability that it stays within the board after N steps. -- You received this message because you are subscribed to the G

Re: [algogeeks] Puzzle:

2010-06-08 Thread divya jain
yes even i dont think its possible as there is no n-1th state..ie there is no state from whr u can come to 2 8 5..so plz check On 7 June 2010 20:23, mohit ranjan wrote: > is it possible ? > > if we say nth state is [2, 8, 5] > > I could not find possible (n-1)th state > > > Mohit Ranjan > > > >

Re: [algogeeks] Puzzle:

2010-06-07 Thread mohit ranjan
is it possible ? if we say nth state is [2, 8, 5] I could not find possible (n-1)th state Mohit Ranjan On Mon, Jun 7, 2010 at 2:02 PM, sharad wrote: > : Three containers are of 15,10 and 6 ltrs capacity. Initially its in > configuration (15,0,0). Make it to configuration (2,8,5) > > -- > Yo

[algogeeks] Puzzle:

2010-06-07 Thread sharad
: Three containers are of 15,10 and 6 ltrs capacity. Initially its in configuration (15,0,0). Make it to configuration (2,8,5) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To

Re: [algogeeks] Puzzle

2010-06-06 Thread Sundeep Singh
place the L block diagonally... --Sundeep. On Sun, Jun 6, 2010 at 7:29 PM, sharad wrote: > A square Island surrounded by bigger square, and in between there is > infinite depth water. The distance between them is L. The wooden > blocks of L are given. > The L length block can't be placed in be

[algogeeks] Puzzle

2010-06-06 Thread sharad
There are N nuts and N bolts, all unique pairs od Nut and Bolt You cant compare Nut with Nut. You cant compare Bolt with Bolt You CAN compare Nut with Bolt Now how would you figure out matching pairs of nut and bolt from the given N nut and Bolt. The basic soln is O(N^2). Give O(NlogN soln) -- Yo

[algogeeks] Puzzle

2010-06-06 Thread sharad
A square Island surrounded by bigger square, and in between there is infinite depth water. The distance between them is L. The wooden blocks of L are given. The L length block can't be placed in between to cross it, as it will fall in water (just fitting). How would you cross using these L length b

[algogeeks] puzzle any answers

2009-07-01 Thread AKS
Three beauty pageant finalists-Cindy, Amy and Linda-The winner was musician. The one who was not last or first was a math major. The one who came in third had black hair. Linda had red hair. Amy had no musical abilities. Who was first? (A) Cindy (B) Amy (C) Linda (D) None of these --~--~-~

[algogeeks] puzzle - Weighing marbles

2007-02-02 Thread Atamurad Hezretkuliyev
Hi, Can somebody help me with this puzzle? I tried to solve it but couldn't. Puzzle 1 Weighing marbles Given are 12 marbles. One of these marbles is slightly heavier or lighter than the others. You have a two plate scale. You are allowed to weigh three times. Can you find the marble that differ

<    1   2   3   >