Question: Please help in JAVA : Write a recursive method to calculate the number of handshakes if n people each shake the hand of everyone in
Please help in JAVA :
Write a recursive method to calculate the number of handshakes if n people each shake the hand of everyone in a room. For example, if there are 2 people in the room and each shakes the others hand once, there will be 1 handshake. If there are 3 people in the room there will be a total of 3 handshakes. With 4 people there are 6 handshakes...
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
