hi, if we have a set of n players(where n can be of the order of 10^6) whose strengths are given , then how can one check if it is possible to choose amongst these players some players(or all) such that we can form two teams each of whose total strength is the same?

the strength of a team is the sum of strengths of individual members.

E.g:

if we players with strengths 10,20,30 and 40 then we can form such two teams by selected players with strengths (10,20) in one team and with 30 in the other team.

Do we need to use median here?

Thanks.