tag:blogger.com,1999:blog-8712770457197348465.post1497498974270311620..comments2016-12-10T14:41:05.446-08:00Comments on Javarevisited: Top 10 Puzzles, Riddles, Logical and Lateral Thinking questions asked in Programming Job InterviewsJavin Paulhttps://plus.google.com/114528699166048052030noreply@blogger.comBlogger47125tag:blogger.com,1999:blog-8712770457197348465.post-21857910597446555822016-11-02T08:23:53.192-07:002016-11-02T08:23:53.192-07:003 is the minimum attempt that guarantee the soluti...3 is the minimum attempt that guarantee the solution... otherwise it could be just random picking that doesn't guarantee u will be rightAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-11500640740247194262016-05-02T09:39:12.171-07:002016-05-02T09:39:12.171-07:00number 8
#1) 3 litters 2 times to 5 litters
#2) 3 ...number 8<br />#1) 3 litters 2 times to 5 litters<br />#2) 3 litters will get 1 litter.<br />#3) 3 litters's 1 litter move to 5 litters.<br />#4) full 3 litter move to 5 litters, and (1+3) is 4Hanjoo Limhttp://www.blogger.com/profile/06092419357542704255noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-42984275057142490562016-04-26T15:16:12.066-07:002016-04-26T15:16:12.066-07:001) use bubble search
1) use bubble search<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-75762568651382272332016-02-10T10:08:54.303-08:002016-02-10T10:08:54.303-08:006. The person shoots with camera, holds the photo ...6. The person shoots with camera, holds the photo into the water,hangs it and then went for dinner with his wife.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-60918491236319781122015-08-20T03:43:37.609-07:002015-08-20T03:43:37.609-07:00In the best case the minimum number of weighing is...In the best case the minimum number of weighing is 1, 13/13 if scales equal remaining coin is defective/heavier/lighterkhajanhttp://www.blogger.com/profile/17819725304417129764noreply@blogger.comtag: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.com