Re: [algogeeks] Re: puzzle
lol :P On Wed, Aug 10, 2011 at 11:35 PM, $hr! k@nth wrote: > Tie the rope at the top of the tower > Climb down with the help of the rope up to 100 mt peg possItion > Tie the rope to that peg, Climb up to the top of the tower with that rope. > Now release the rope at the top and hold it. It ll take you down.:P > > > On Wed, Aug 10, 2011 at 7:49 PM, varun pahwa wrote: > >> make two ropes 50m and 100 meter. make a loop kind of thing with that now >> you have two 50 mtr ropes so get down to 100 mtr point and tie loop rope in >> downward now cut the loop at 100 mtr you have 100 mtr rope then move down >> with the help of that. i hope i am clear. >> >> >> On Mon, Aug 8, 2011 at 1:52 PM, Shachindra A C wrote: >> >>> tie the rope to the peg and hold the rope at a little less than 100m >>> point. Then jump. >>> >>> >>> On Mon, Aug 8, 2011 at 1:19 PM, Himanshu Srivastava < >>> himanshusri...@gmail.com> wrote: >>> >>>> @Dave oh i thought some logical concept willl be applied in that >>>> case...it is ok!!! >>>> thanks:) >>>> >>>> >>>> On Fri, Aug 5, 2011 at 1:47 AM, Dave wrote: >>>> >>>>> @Himanshu: That is easy for any boy scout. :-) Tie the rope at the top >>>>> of the tower. Then tie a sheepshank knot of a comfortable length in >>>>> the rope and cut the middle strand inside the knot. Climb down the >>>>> rope to the peg and tie the other end of the rope onto the peg. Then, >>>>> while standing on or hanging from the peg, shake the upper rope to >>>>> release the sheepshank knot. The upper end will fall down and you can >>>>> climb the rest of the way down. >>>>> >>>>> Dave >>>>> >>>>> >>>>> On Aug 4, 1:50 pm, Himanshu Srivastava >>>>> wrote: >>>>> > suppose u tie the rope at 200mt height and now climb down to 100m >>>>> > heightthen u tie the rope at that point then how will you open >>>>> the rope >>>>> > at point above 200mt where u have tied it earlier >>>>> > >>>>> > >>>>> > >>>>> > On Thu, Aug 4, 2011 at 11:15 PM, mohit verma >>>>> wrote: >>>>> > > can't we tie the rope where we are standing (at height of 200 >>>>> meter)? >>>>> > >>>>> > > On Thu, Aug 4, 2011 at 10:26 PM, neeraja marathe < >>>>> > > neeraja.marath...@gmail.com> wrote: >>>>> > >>>>> > >> this was the puzzle asked to me in NVIDIA interview: >>>>> > >> you are standing on top of a tower of ht 200 mt. .At 100 mt. ht . >>>>> from >>>>> > >> bottom of tower there is a peg where u can tie a rope. You have a >>>>> rope >>>>> > >> of length 150 mt. with you and using this rope you have to get >>>>> down >>>>> > >> the tower. you can not jump or there is nobody to help you. how >>>>> will u >>>>> > >> get down the tower?? >>>>> > >>>>> > >> -- >>>>> > >> 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 group at >>>>> > >>http://groups.google.com/group/algogeeks?hl=en. >>>>> > >>>>> > > -- >>>>> > > >>>>> > > *MOHIT VERMA* >>>>> > >>>>> > > -- >>>>> > > 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 group at >>>>> > >http://groups
Re: [algogeeks] os
*shared memory is the fastest IPC mechanism Because we need not copy some data from one place to another.* On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal wrote: > > Fastest IPC mechanism is > >1. ?shared memory >2. ?pipes >3. ?named pipes >4. ?Semaphores > > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > 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 group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] os
named pipes!!! On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal wrote: > > Fastest IPC mechanism is > >1. ?shared memory >2. ?pipes >3. ?named pipes >4. ?Semaphores > > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > 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 group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: puzzle
@Dave oh i thought some logical concept willl be applied in that case...it is ok!!! thanks:) On Fri, Aug 5, 2011 at 1:47 AM, Dave wrote: > @Himanshu: That is easy for any boy scout. :-) Tie the rope at the top > of the tower. Then tie a sheepshank knot of a comfortable length in > the rope and cut the middle strand inside the knot. Climb down the > rope to the peg and tie the other end of the rope onto the peg. Then, > while standing on or hanging from the peg, shake the upper rope to > release the sheepshank knot. The upper end will fall down and you can > climb the rest of the way down. > > Dave > > > On Aug 4, 1:50 pm, Himanshu Srivastava > wrote: > > suppose u tie the rope at 200mt height and now climb down to 100m > > heightthen u tie the rope at that point then how will you open the > rope > > at point above 200mt where u have tied it earlier > > > > > > > > On Thu, Aug 4, 2011 at 11:15 PM, mohit verma > wrote: > > > can't we tie the rope where we are standing (at height of 200 meter)? > > > > > On Thu, Aug 4, 2011 at 10:26 PM, neeraja marathe < > > > neeraja.marath...@gmail.com> wrote: > > > > >> this was the puzzle asked to me in NVIDIA interview: > > >> you are standing on top of a tower of ht 200 mt. .At 100 mt. ht . from > > >> bottom of tower there is a peg where u can tie a rope. You have a rope > > >> of length 150 mt. with you and using this rope you have to get down > > >> the tower. you can not jump or there is nobody to help you. how will u > > >> get down the tower?? > > > > >> -- > > >> 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 group at > > >>http://groups.google.com/group/algogeeks?hl=en. > > > > > -- > > > > > > *MOHIT VERMA* > > > > > -- > > > 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 group at > > >http://groups.google.com/group/algogeeks?hl=en.- Hide quoted text - > > > > - Show quoted text - > > -- > 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 group at > http://groups.google.com/group/algogeeks?hl=en. > > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Puzzle
oh ok..thankshalf part which was kept inside the wellmeans well must be full..that is 100ok got it completely thank u:) On Fri, Aug 5, 2011 at 12:18 AM, sagar pareek wrote: > double 87.5 gives you 175 > 100 will be used by 1st well and 75 will be used by second > now second well will double the 75 and will give you 150 > 100 will be used by second and remainder 50 will forwarded to third > now third one use 50 and will double it to 100 > > no remainder left > i think its clear now :) :) > > > On Fri, Aug 5, 2011 at 12:14 AM, Himanshu Srivastava < > himanshusri...@gmail.com> wrote: > >> i mean @sagar:how did you get 87.5%?? >> >> >> On Fri, Aug 5, 2011 at 12:13 AM, Himanshu Srivastava < >> himanshusri...@gmail.com> wrote: >> >>> @nikhil:how did you get 87.5%?? >>> >>> On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek wrote: >>> >>>> 87.5 % >>>> >>>> On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta < >>>> nikhilgupta2...@gmail.com> wrote: >>>> >>>>> There are 3 magical wells. Any input quantity of water we provide the >>>>> 1st well is returned double (of this double, half is kept inside the well, >>>>> and the other half is used as input to the 2nd well). >>>>> The 2nd well also returns double the quantity of its input (of which >>>>> half is kept inside the well, and the other half is used as input to the >>>>> 3rd >>>>> well). Same goes with the 3rd, but its half output is the remainder (other >>>>> half being kept inside the well). Now what input should we provide in the >>>>> 1st well, so that the remainder at the end comes out to be zero? >>>>> >>>>> (Asked in classroom coaching of T.I.M.E.) >>>>> -- >>>>> Nikhil Gupta >>>>> Senior Co-ordinator, Publicity >>>>> CSI, NSIT Students' Branch >>>>> NSIT, New Delhi, India >>>>> >>>>> -- >>>>> 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 group at >>>>> http://groups.google.com/group/algogeeks?hl=en. >>>>> >>>> >>>> >>>> >>>> -- >>>> **Regards >>>> SAGAR PAREEK >>>> COMPUTER SCIENCE AND ENGINEERING >>>> NIT ALLAHABAD >>>> >>>> -- >>>> 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 group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>> >>> >> -- >> 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 group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > **Regards > SAGAR PAREEK > COMPUTER SCIENCE AND ENGINEERING > NIT ALLAHABAD > > -- > 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 group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] puzzle
suppose u tie the rope at 200mt height and now climb down to 100m heightthen u tie the rope at that point then how will you open the rope at point above 200mt where u have tied it earlier On Thu, Aug 4, 2011 at 11:15 PM, mohit verma wrote: > can't we tie the rope where we are standing (at height of 200 meter)? > > On Thu, Aug 4, 2011 at 10:26 PM, neeraja marathe < > neeraja.marath...@gmail.com> wrote: > >> this was the puzzle asked to me in NVIDIA interview: >> you are standing on top of a tower of ht 200 mt. .At 100 mt. ht . from >> bottom of tower there is a peg where u can tie a rope. You have a rope >> of length 150 mt. with you and using this rope you have to get down >> the tower. you can not jump or there is nobody to help you. how will u >> get down the tower?? >> >> -- >> 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 group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > > > -- > > *MOHIT VERMA* > > -- > 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 group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Why cant structures be declared or defined in C but can be done in C++ ?
afcose strcutures can be declared.classes are not declared!!! On Fri, Aug 5, 2011 at 12:13 AM, Dipankar Patro wrote: > Structures can very well be declared in C: > struct student{ > char name[20]; > int roll; > }s1; > > Are you talking about Classes? > > > On 4 August 2011 23:51, Ankur Garg wrote: > >> Why cant structures be declared or defined in C but can be done in C++ ? >> >> >> What is the reason for this ? >> >> -- >> 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 group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > > ___ > > Please do not print this e-mail until urgent requirement. Go Green!! > Save Papers <=> Save Trees > > -- > 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 group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Puzzle
i mean @sagar:how did you get 87.5%?? On Fri, Aug 5, 2011 at 12:13 AM, Himanshu Srivastava < himanshusri...@gmail.com> wrote: > @nikhil:how did you get 87.5%?? > > On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek wrote: > >> 87.5 % >> >> On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta >> wrote: >> >>> There are 3 magical wells. Any input quantity of water we provide the 1st >>> well is returned double (of this double, half is kept inside the well, and >>> the other half is used as input to the 2nd well). >>> The 2nd well also returns double the quantity of its input (of which half >>> is kept inside the well, and the other half is used as input to the 3rd >>> well). Same goes with the 3rd, but its half output is the remainder (other >>> half being kept inside the well). Now what input should we provide in the >>> 1st well, so that the remainder at the end comes out to be zero? >>> >>> (Asked in classroom coaching of T.I.M.E.) >>> -- >>> Nikhil Gupta >>> Senior Co-ordinator, Publicity >>> CSI, NSIT Students' Branch >>> NSIT, New Delhi, India >>> >>> -- >>> 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 group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> >> >> -- >> **Regards >> SAGAR PAREEK >> COMPUTER SCIENCE AND ENGINEERING >> NIT ALLAHABAD >> >> -- >> 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 group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Puzzle
@nikhil:how did you get 87.5%?? On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek wrote: > 87.5 % > > On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta > wrote: > >> There are 3 magical wells. Any input quantity of water we provide the 1st >> well is returned double (of this double, half is kept inside the well, and >> the other half is used as input to the 2nd well). >> The 2nd well also returns double the quantity of its input (of which half >> is kept inside the well, and the other half is used as input to the 3rd >> well). Same goes with the 3rd, but its half output is the remainder (other >> half being kept inside the well). Now what input should we provide in the >> 1st well, so that the remainder at the end comes out to be zero? >> >> (Asked in classroom coaching of T.I.M.E.) >> -- >> Nikhil Gupta >> Senior Co-ordinator, Publicity >> CSI, NSIT Students' Branch >> NSIT, New Delhi, India >> >> -- >> 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 group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > **Regards > SAGAR PAREEK > COMPUTER SCIENCE AND ENGINEERING > NIT ALLAHABAD > > -- > 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 group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 group at http://groups.google.com/group/algogeeks?hl=en.