programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
• Tim Cooke
• Campbell Ritchie
• Ron McLeod
• Junilu Lacar
• Liutauras Vilda
Sheriffs:
• Paul Clapham
• Jeanne Boyarsky
• Henry Wong
Saloon Keepers:
• Tim Moores
• Tim Holloway
• Stephan van Hulst
• Piet Souris
• Carey Brown
Bartenders:
• Jesse Duncan
• Frits Walraven
• Mikalai Zaikin

# analitical question

Ranch Hand
Posts: 237
• Number of slices to send:
Optional 'thank-you' note:
i went for an interview.they ask me there are 9 bolls and one boll's weight is lessthan other eight.And there is a balance also.He ask me to find the less weight boll using two times?

can anyone tell me reference to place find these type of analitical questions?

Ranch Hand
Posts: 597
• Number of slices to send:
Optional 'thank-you' note:
3+3+3

left side group1 right side group2
caseI
if both are unequal then you find out group of three which contains target , lets say it is group1.
Now from group left side one , right side one. If they are equal, then remaining one is less weight, otherwise you can see on balance.
caseII. Both are equal, then group3 contains target.
again from group left side one , right side one. If they are equal, then remaining one is less weight, otherwise you can see on balance

Marshal
Posts: 75866
361
• Number of slices to send:
Optional 'thank-you' note:
This sounds like a puzzle question like "how do you weigh an elephant?" If you have seen it before, it is very easy. Such an interview is as much a test of memory as of intelligence.

Sandeep Awasthi
Ranch Hand
Posts: 597
• Number of slices to send:
Optional 'thank-you' note:
You can call them puzzles but these questions are designed to check how your brain can work in different situations. Not sure.

But in India these questions are asked to entry level developers. I have interest in these puzzles even today because I enjoy solving them.

I agree if you practice, they are easy for anyone.

Author
Posts: 6055
8
• Number of slices to send:
Optional 'thank-you' note:

Campbell Ritchie wrote:This sounds like a puzzle question like "how do you weigh an elephant?" If you have seen it before, it is very easy. Such an interview is as much a test of memory as of intelligence.

It's actually a slightly different family of questions--of course most interviewers aren't competent enough to know the difference.

The weight question is a bounded math problem. You can mathematically express the question and the solution. Similar questions include a knight's tour, tiling problems, river crossing questions, etc.

The elephant question is open ended and tests your ability to work with unbounded problems requiring creativity to find a solution. Similar questions include moving a mountain, lightbulb questions, and to a lesser extent Feynman numbers.

--Mark

Ranch Hand
Posts: 91
• Number of slices to send:
Optional 'thank-you' note:
I have recently been attending a few interviews and had faced such questions in a well know company.

I got the above mentioned question of finding a less wieghing defective ball from 16 balls. I knew the answer.

Another question was to find a date closest to the given date (lesser than given date) which when represented in a string is a palindrome. The given date was 10022001 (02 Oct 2001).When I started writing the logic to program it he told me to ifnd it manually. Even after 15 minutes and a couple of hints I did not get it

The interviewer was kind enough to explain me the answer and it was based on the logic ofelimination.

Fortunately, I managed to just clear it.

P.S : If anyone can provide me links to such questions I would like to try it out.

Regards

Bartender
Posts: 6663
5
• Number of slices to send:
Optional 'thank-you' note:

P.S : If anyone can provide me links to such questions I would like to try it out.

http://www.careercup.com/

Ranch Hand
Posts: 300
• Number of slices to send:
Optional 'thank-you' note:
Does anyone know any link for solving the questions like - Identifying data structure in a given design.

Ranch Hand
Posts: 453
• Number of slices to send:
Optional 'thank-you' note:

anarkali perera wrote:i went for an interview.they ask me there are 9 bolls and one boll's weight is lessthan other eight.And there is a balance also.He ask me to find the less weight boll using two times?

can anyone tell me reference to place find these type of analitical questions?

you can check out Barron GRE book 12th edition or 13th edition.

avi sinha

Campbell Ritchie
Marshal
Posts: 75866
361
• Number of slices to send:
Optional 'thank-you' note:

Mark Herschberg wrote:lightbulb questions, and to a lesser extent Feynman numbers.

--Mark

I wouldn't know what a Feynman number is if it bit me in the ankle . . . but in this country "lightbulb questions" means silly riddles of the sort "How many Java programmers does it take to change a lightbulb?"

 My, my, aren't you a big fella. Here, have a tiny ad: Free, earth friendly heat - from the CodeRanch trailboss https://www.kickstarter.com/projects/paulwheaton/free-heat