package com.hanzheng.algorithm;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class BasketballPlayer {
public static List<Integer> nums = new ArrayList<>();
public static void main(String[] args) {
int[] players = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int sum = 0;
for (int i = 0; i < players.length; i++) {
nums.add(players[i]);
sum += players[i];
}
Collections.sort(nums);
List<Integer> A = new ArrayList<>();
int countA = 0;
List<Integer> B = new ArrayList<>();
int countB = 0;
while (nums.size() > 0) {
int index = findMostNearAverage(sum / nums.size());