FunctionRacerProblemsRace

Handshake Count

BeginnerMathPython, JavaScript, TypeScript, Java, C++

Everyone in a group of people shakes hands exactly once with every other person. Return the total number of handshakes.

Example 1

people 4
returns 6

6 handshakes.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Math problems