[Probability] There are four people in a room that haven't met before. They are told to shake hands, exactly once, of every other person in the room so that they all meet each other. If each of these people shake their hands with every other person exactly once then how many handshakes are going to occur?

Data Science Interview QuestionsCategory: Data Science[Probability] There are four people in a room that haven't met before. They are told to shake hands, exactly once, of every other person in the room so that they all meet each other. If each of these people shake their hands with every other person exactly once then how many handshakes are going to occur?
MockInterview Staff asked 7 years ago
MockInterview Staff answered 7 years ago

8

6

6

6

6

Philip Lawson answered 2 years ago

6

VIJAY BHARGAV KARNATI answered 2 years ago

6. The number shake hands that we get for a single person where n = 3 is 2 i.e n-1. SO we multiply with the number of members with n-1 = n*(n-1). where as the to avoid double hand shakes we divide by 2. n*(n-1)/2 = 3(3-1)/2 = 3*2/2=3