Solution to the drawf problem


The answer is one, as only the last wizard will be killed as he can’t know his hat colour but he will inform front one his hat color and similarly other thus he only got killed


If nth dwarf inform (n-1)th dwarf his hat color, the at the time of (n-1)th, either he will say his own hat color or (n-2)th hat color. If he says (n-2)th hat color, then he can be killed too. Then how is your explanation working?


OMG at first I too thought in the same way as @prakhar-agarwal_491 did, I didnt even worked on idea completely. Thanks for your answer @ankesh11 :slight_smile: