[Solved] List permutation existance

[ad_1]

A variation on Save’s solution:

var fixedSet = new HashSet<int>(){A,B,C};
bool result = PossibleSolutions.Any(x => fixedSet.SetEquals(
    new[] { x.CapacitorALocation,x.CapacitorBLocation,x.CapacitorCLocation }));

3

[ad_2]

solved List permutation existance