Last 12 weeks · 0 commits
1 of 6 standards met
another possible solution to minimize the number of dwarves killed is as follows: each dwarf has to say 'black' or 'white'. Each dwarf speaks the color of the hat being worn by the dwarf in front of him/her. This way, only the first dwarf shall be killed in the worst case. All other dwarves shall know the color of their hat, for certainty. Am I missing something ? it feels lot more simpler solution as compared with computing parity
Repository: sharkdp/great-puzzles. Description: A curated list of great puzzles Stars: 843, Forks: 39. Topics: list, puzzle. Open PRs: 0, open issues: 3. Last activity: 7y ago. Community health: 28%. Top contributors: sharkdp, niosus, siddhanjay, chirag64, cruegge, jtrestik, swapagarwal.