tag:blogger.com,1999:blog-8712770457197348465.post1497498974270311620..comments2015-03-29T22:20:08.040-07:00Comments on Javarevisited: Top 10 Puzzles, Riddles, Logical and Lateral Thinking questions asked in Programming Job InterviewsJavin Paulhttps://plus.google.com/114528699166048052030noreply@blogger.comBlogger42125tag:blogger.com,1999:blog-8712770457197348465.post-82107706373200434372015-02-06T09:35:58.779-08:002015-02-06T09:35:58.779-08:00I was sure I had 6 but now I feel like an idiot. ...I was sure I had 6 but now I feel like an idiot. <br /><br />"A person shoots HER wife. Then holds her under water for 5 minutes. Finally, HE hangs her"<br /><br />I thought the typo with her instead of his was intentional to suggest that it was a married lesbian couple. One woman actually shot and drowned her wife, then HE (the man she was having an affair with) came in and hanged Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-87119224451557575412015-01-19T04:38:33.950-08:002015-01-19T04:38:33.950-08:00Q1 I thinked about binary search and reached 4 tes...Q1 I thinked about binary search and reached 4 tests. But it can find the heavier coin at 1st test.<br /><br />Test 1:<br />Put 2 sets of 13 coins each pan. <br />If set1 = set 2, the coin that's left out is the heavier. <br />Else eliminate 14 coins (the lighter set and the coin tha's left out). The heavier set is X. <br /><br />Test 2: divide the set X in 2 sets of 6 coins each and testDomingos Tavaresnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-6606054387411144312015-01-18T14:37:47.798-08:002015-01-18T14:37:47.798-08:00Yes, finally someone who doesn't think it'...Yes, finally someone who doesn't think it's 3. It can be done another way too though. Take 2 coins and put them on the scales. If 1 side is heavier, you have yourself an answer!!!Funk Pigeonhttp://www.blogger.com/profile/17937306011779689225noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-81157730433401850102015-01-18T12:23:28.041-08:002015-01-18T12:23:28.041-08:001. 9,9. Remaining 9
2. 3,3. Remaining 3
3. 1,1. Re...1. 9,9. Remaining 9<br />2. 3,3. Remaining 3<br />3. 1,1. Remaining 1Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-87657819534048288622015-01-18T12:15:30.449-08:002015-01-18T12:15:30.449-08:00They're irregularly shaped.They're irregularly shaped.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-16122453993528465142014-08-14T21:53:47.273-07:002014-08-14T21:53:47.273-07:00Q5 is quite easy (more elegant solution than previ...Q5 is quite easy (more elegant solution than previously proposed)<br />As already said, we take "n" marbles from jar "#n" (1 from jar 1, 2 from jar 2, ..)<br />If you take a look at the multiplication table for 9, you will notice a nice property<br />for the last digit:<br />1x9 = 9<br />2x9 = 18<br />3x9 = 27<br />4x9 = 36<br />5x9 = 45<br />6x9 = 54<br />7x9 = 63<br />8x9 = Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-57139021044949821062014-08-08T04:05:27.694-07:002014-08-08T04:05:27.694-07:00Q6) It is a picture of his wife,he did a photoshoo...Q6) It is a picture of his wife,he did a photoshoot of her,developed the pic by keeping it under water and then hung the picture for display and later went out with her for dinner.neha kannahttp://www.blogger.com/profile/01070791460440002842noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-18291448031025869152014-07-29T13:09:29.201-07:002014-07-29T13:09:29.201-07:00Q3) person in the car is grand fatherQ3) person in the car is grand fatherRaja Sekhar Chalikihttp://www.blogger.com/profile/12565988305012825752noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-63252911926904652472014-06-16T05:56:20.389-07:002014-06-16T05:56:20.389-07:00Ans to question 8
1)fill up the 3 lit jug and pour...Ans to question 8<br />1)fill up the 3 lit jug and pour it into the empty 5 lit jug<br />2)now again fill up the emptied 3 lit jug and pour it to the earlier filled 5 lit jug<br />3)so now you have 1 L remaining in the 3 lit jug<br />4)now empty the 5 lit jug and pour the 3lit jug containing 1l water<br />5)now again fill up the 3 lit jug and pour it into the 5 lit jug already containing 1 lit ofanupriya lilhorihttp://www.blogger.com/profile/04585295312925599602noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-21291467361108867572014-05-20T05:34:58.410-07:002014-05-20T05:34:58.410-07:00Q7
Ans:- The person in the car is Church Father :)...Q7<br />Ans:- The person in the car is Church Father :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-916277294858926042014-05-03T13:39:53.897-07:002014-05-03T13:39:53.897-07:00answer for q no. 1 is 3 attempts, we can find the ...answer for q no. 1 is 3 attempts, we can find the odd coin..<br />9 & 9 keep 9 on other side,<br />if blnc take 9 frm other side, balance 3& 3 keep 3 aside,<br />if balance take 3 frm other side , balance 1 & 1,keep 1 aside.<br />now u got the odd one out..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-64752684481229433602014-04-30T23:02:01.185-07:002014-04-30T23:02:01.185-07:00in ques. 9 ans is 12 min
A[1] AND B[2] IT WILL TA...in ques. 9 ans is 12 min <br />A[1] AND B[2] IT WILL TAKE 2 MIN<br />C[5] AND D[10] IT WILL TAKE 10 MIN<br />TOTAL 12 MINAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-68665934820895960912014-04-20T15:21:10.445-07:002014-04-20T15:21:10.445-07:00Answer to question 7. The doctor is the father of...Answer to question 7. The doctor is the father of the dead person. the dead person's son brings him to the hospital immediately after the accident. Grand father is the doctor, father is the dead person. His son remains alive.<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-50936809886958338702014-04-05T04:06:41.658-07:002014-04-05T04:06:41.658-07:00Answer to Question No 4. Switch on first switch. W...Answer to Question No 4. Switch on first switch. Wait for 2 minutes. Switch on second switch. Go inside the room and touch the bulbs to find out which bulb belongs to which switch. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-75579322810435620542014-04-05T03:46:53.353-07:002014-04-05T03:46:53.353-07:00Answer to Qustion No 1 is 4
1. 13, 13. Remaining 1...Answer to Qustion No 1 is 4<br />1. 13, 13. Remaining 1<br />2. 6, 6. Remaining 1<br />3. 3,3. Remaining 0<br />4. 1,1. Remaining 1Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-52703572748608186512014-04-05T03:44:09.012-07:002014-04-05T03:44:09.012-07:00Answer to Question No 3:
Let Length of tunnel = x
...Answer to Question No 3:<br />Let Length of tunnel = x<br />When they saw the train, distances to the ends of tunnel: x/3 and 2x/3<br />Time taken (TT) by 2x/3 person = TT by train to reach the first end + TT by the train inside the tunnel<br />Time taken (TT) by 2x/3 person = TT by x/3 person + TT by the train inside the tunnel<br />ie (2x/3)/10 = (x/3)/10 + x/Y (time = distance/velocity: Y = Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-81357677746150893232013-12-24T01:53:32.474-08:002013-12-24T01:53:32.474-08:00Answer to Puzzle 7
May be the child and father h...Answer to Puzzle 7 <br /> May be the child and father hit a church father.And may be that doctor is actual mother of the church father. Saikiran Reddyhttp://www.blogger.com/profile/03785142396859891177noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-50606500361007070682013-11-26T06:52:46.570-08:002013-11-26T06:52:46.570-08:00Answer to Puzzle 7
The Father from Church travels ...Answer to Puzzle 7<br />The Father from Church travels with a son who is not his biological son!<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-13977925752237517672013-11-25T15:17:41.253-08:002013-11-25T15:17:41.253-08:00This does not proof that three is the minimum, onl...This does not proof that three is the minimum, only that it is possible in three times, so it does not solve the problemAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-90071637888539978992013-11-19T04:46:53.416-08:002013-11-19T04:46:53.416-08:00Ans. of Que 10 .
child's age 6 years
father...Ans. of Que 10 .<br />child's age 6 years<br />father's age 42 years<br />grand father's age 72 yearsChirag Bansalhttp://www.blogger.com/profile/03069761123016337682noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-82194416610362114462013-11-15T21:00:46.728-08:002013-11-15T21:00:46.728-08:00answer of question4
first switch on any switch fr...answer of question4<br /><br />first switch on any switch from those 3 and keep it ON for 15 mins and then switch it off . Now switch on any other switch and keep it ON ,Now you enter the room .Touch any one of the bulbs ,if any of those are hot means it belongs to the first switch you turned on and then off . The second bulb is already ON so you know the switch implicitly. The third bulb was rajivhttp://www.blogger.com/profile/05751530756190226040noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-66265237532354709292013-10-08T11:38:21.299-07:002013-10-08T11:38:21.299-07:00Number 9 should be 12 mins.
first A(1) and B(2) cr...Number 9 should be 12 mins.<br />first A(1) and B(2) cross the bridge in 2 mins<br />then C(5) and D(10) cross the bridge in 10 mins.<br />Nobody said there was only one torch.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-82793487498787564252013-09-30T08:18:44.016-07:002013-09-30T08:18:44.016-07:00Q6 says a person shooted HER wife. Then later , it...Q6 says a person shooted HER wife. Then later , it says HE hang her. So i think that the he and her are two different people and the two of them went for dinner. This is just my opinion.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-16688678598341465292013-09-02T04:38:02.769-07:002013-09-02T04:38:02.769-07:00answer of the 3 one is 30 kmph
answer of the 3 one is 30 kmph<br />Paidisetti Udaykumarhttp://www.blogger.com/profile/11451262084471179831noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-86762535560282020402013-09-02T04:30:14.403-07:002013-09-02T04:30:14.403-07:00ans 3; train speed is 30 kmph
v=d/t first u have t...ans 3; train speed is 30 kmph<br />v=d/t first u have to caliculate the time to travel from the 1/3 of the tunnel to one person who travelled towards to train is 10=(1/3)/t from this equation u will get t value is 1/30 hrs and now should go the second person who is the running away from the train.(1/v)=(1/3)/10 from this equation u will get the v value means train speed is 30 kmph<br /> Paidisetti Udaykumarhttp://www.blogger.com/profile/11451262084471179831noreply@blogger.com