[Solved] List permutation existance


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

solved List permutation existance