Possible duplicate:
What is the approach to solving such a logical problem?
Here is my scenario: We are given N people who may be liars or truths. A liar always lies, and truth always tells the truth. We have a list with their answers. Each of them answers who is a liar. Example:
A 1
B
B 1
C
D 1
B
C 1
B
E 2
D
A
A says that B is a liar. B says that C is a liar. [...] E says that D and A are liars.
I want to know 2 numbers (a group of liars and a group of true readers). For the above answer [3,2]. What is the best way to do this?
source
share