Problem Statement | |||||||||||||
A round of Blackjack has ended and it's time to reveal the winner. Use the following two rules to determine the outcome of the round:
You are given a int[] points, where points[i] is the number of points received by the i-th player. If there is exactly one winner, return the 0-based index of the winning player. Otherwise, return -1. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Constraints | |||||||||||||
| - | points will contain between 1 and 50 elements, inclusive. | ||||||||||||
| - | Each element of points will be between 1 and 35, inclusive. | ||||||||||||
Examples | |||||||||||||
| 0) | |||||||||||||
| |||||||||||||
| 1) | |||||||||||||
| |||||||||||||
| 2) | |||||||||||||
| |||||||||||||
| 3) | |||||||||||||
| |||||||||||||
| 4) | |||||||||||||
| |||||||||||||
| 5) | |||||||||||||
| |||||||||||||
| 6) | |||||||||||||
| |||||||||||||