Re: Logic Quiz
lol @ at least once …
I am looking for a more efficient way … there is no Big O here since the efficient way is sort of constant.
Re: Logic Quiz
lol @ at least once …
I am looking for a more efficient way … there is no Big O here since the efficient way is sort of constant.
Re: Logic Quiz
Our answer is also right. Problem can be solved in multiple way.. But you are looking for most optimize. In my opinion, @SID_NY and my answer are also correct.
Re: Logic Quiz
Not satisfied with the answer or with the explaination? Answer will either be right or wrong
okay, then its wrong ( iwas tring to act as interviwer) anyway ...
I need to know what is the minimum number of time one has to use the scale to figure out and 3 isn't he answer
thats why i wasn't putting the quesiton like that, now you know the answer is either 2 or 1. All you need is to figure out how.
Re: Logic Quiz
how about this
lets split the 8 into three parts 3 , 3 , 2
weigh the two three groups.
Scenario 1 - if they are equal - then weigh the last part ( 2 balls) will give you the light ball
( so total weighs - 2)
Scenario 2 - they are not equal
in this case take the lighter pile , take 2 balls. if they don't weigh equal then its clear which one is the light ball. If they weigh equal then the third ball is the lightest one.
Re: Logic Quiz
how about this lets split the 8 into three parts 3 , 3 , 2
weigh the two three groups. Scenario 1 - if they are equal - then weigh the last part ( 2 balls) will give you the light ball ( so total weighs - 2)
Scenario 2 - they are not equal in this case take the lighter pile , take 2 balls. if they don't weigh equal then its clear which one is the light ball. If they weigh equal then the third ball is the lightest one.
aur aik baar phir, electra aap ka hoa.
Re: Logic Quiz
Red. Here if one is telling the truth so is the other. Because their statements are consistent. So both qre lying. Andrew is wearing red shirt.
Re: Logic Quiz
So, I will start with a simple one.
There is a king who has 1000g of gold. He wants to convert this gold into coins. So he calls all goldsmith of his area and gives them 100g of gold each. He orders them to make 10 coins of 10g each. One of the goldsmith thinks that no one is going to notice if he makes 10 coins of 9g each.
At 10th day, each goldsmith comes to the king with their bags which contains 10 coins of 10g each. Only of the goldsmith has 10 coins of 9g each. Now which one is he, no one knows.
King has one digital scale which can give king ONLY ONE READING. Now how can king figure out which goldsmith made 10 coins of 9g each ?
Edit: One clarification. The king can use scale for only one reading or in other terms, he can use the scale only once to note only one reading
The quiz statement not very clear. I willl assume the scale can be used only once. He picks 5 bags in random. Assume each empty bag weighs same. So from 5 bags, he shoukd know if that lot has the 9g coin or not.
That is the best he can do.
Now, if the scale can be used again, he splits the 5 bags that have the 9g coins into 3 and weighs.the 3 If in this he takes two and weighs. If not in tbis, he takes remaining two bags. Weighs one of them. If this is correct weight 9g coin in other bag. Else this bag.
What am I missing
Did Monk solve this
Re: Logic Quiz
Or after first weighg, he gathers the 5 folks who may be respnsible. Beats the crap out of them or looks for eye twitching.
Re: Logic Quiz
Aftermath of watching too many telgo movies ![]()
Re: Logic Quiz
had read a few years back so I know the answer mark the bags from the goldsmith as 1,2,3,4,5,6,7,8,9,10 pick the 1 coin , 2 coins , 3 coins... from these bags.
when all the coins are weighed the total weight should be 55 - the amount by which the actual total weight is short will identify the thief.
Wow. Superb. (Saw Mustafa correction of 550g). Would never have thought of this.
Re: Logic Quiz
how about this lets split the 8 into three parts 3 , 3 , 2
weigh the two three groups. Scenario 1 - if they are equal - then weigh the last part ( 2 balls) will give you the light ball ( so total weighs - 2)
Scenario 2 - they are not equal in this case take the lighter pile , take 2 balls. if they don't weigh equal then its clear which one is the light ball. If they weigh equal then the third ball is the lightest one.
Wow times 2.
Re: Logic Quiz
A very simple one
James and Jonathan are liars, who lie on specific days.
James lies on Fridays, Saturdays and Sundays, but he is honest on all other days.
Jonathan lies on Tuesdays, Wednesdays and Thursdays, but he tells the truth on all other days.
On what day of the week would they both say "Tomorrow, I will lie." ?
Re: Logic Quiz
[TABLE="class: grid, width: 500"]
Days
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
James
X
X
X
Jonathan
X
X
X
On Thursday, both James and Jonathan will say "I will lie". James is telling the truth, and Jonathan is lying.
Re: Logic Quiz
Thursday
Re: Logic Quiz
A very simple one
James and Jonathan are liars, who lie on specific days.
James lies on Fridays, Saturdays and Sundays, but he is honest on all other days.
Jonathan lies on Tuesdays, Wednesdays and Thursdays, but he tells the truth on all other days.
On what day of the week would they both say "Tomorrow, I will lie." ?
why are you obsessed with liars and their day to day activities ?
Re: Logic Quiz
[TABLE="class: grid, width: 500"]
Days
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
James X
X X
Jonathan
X
X
X
On Thursday, both James and Jonathan will say "I will lie". James is telling the truth, and Jonathan is lying.
yup - thats what i was here to say too ... makes perfect sense
Re: Logic Quiz
**Alright guys - here is one of the toughest one that i know. Its a very popular interview question for CS students so you can google the answer but it all depends on you if you want to be honest or just win. I have made some changes to the riddle to make it easy and less complex.
**A group of people with blue eye colors live on an island. They are all perfect logicians -- if a conclusion can be logically deduced, they will do it instantly. No one knows the color of their eyes. Every night at midnight, a ferry stops at the island. Any islanders who have figured out the color of their own eyes and if their eye-color is blue then they can leave the island, and the rest stay. Everyone can see everyone else at all times and keeps a count of the number of people they see with each eye color (excluding themselves), but they cannot otherwise communicate. Everyone on the island knows all the rules in this paragraph.
On this island there are 100 blue-eyed people and the Guru (she happens to have green eyes). So any given blue-eyed person can see 99 people with blue eyes (and one with green), but that does not tell him his own eye color; as far as he knows the totals could be 99 blue and 1 not blue.
The Guru is allowed to speak once (let's say at noon), on one day in all their endless years on the island. Standing before the islanders, she says the following:
"I can see someone who has blue eyes."
Who leaves the island, and on what night?
There are no mirrors or reflecting surfaces, nothing dumb. It is not a trick question, and the answer is logical. It doesn't depend on tricky wording or anyone lying or guessing, and it doesn't involve people doing something silly like creating a sign language or doing genetics. The Guru is not making eye contact with anyone in particular; she's simply saying "I count at least one blue-eyed person on this island who isn't me."
Re: Logic Quiz
I think you can use little trick which would make your chance 50/50 to find balls in 3 or in 2 tries.
So you make your odds better.
That would be if you put 2 balls each side on the scale.
Is that right Qurasishi saab ?
Re: Logic Quiz
I think you can use little trick which would make your chance 50/50 to find balls in 3 or in 2 tries. So you make your odds better.
That would be if you put 2 balls each side on the scale.
Is that right Qurasishi saab ?
uncle monk - you are absolutely corrrrrrrect. someone already posted the answer though.
Re: Logic Quiz
I think you can use little trick which would make your chance 50/50 to find balls in 3 or in 2 tries. So you make your odds better.
That would be if you put 2 balls each side on the scale.
Is that right Qurasishi saab ?
Hope you still like this thread. Any changes.we can offer to further accommodate your wishes?