Differs from sugested solution above in that a list item can only appear once for each row.
This is for a booking system for my spa. Different employees can perform different treatments.
I have a List<List<int>>
. These are therapists that can perform the treatment that is booked.
Each list (booking) contain a number of integers like this (these are therapists that can perform the booking):
{1, 3, 6}, //Booking 1
{1, 2, 6}, //Booking 2
{1}, //Booking 3
{2,3} //Booking 4
I'd like to see all possible combinations where the number can only appear in one Place. For the above list the two possible ombinations would be:
6,2,1,3 or 3,6,1,2
That is for the first combination:
- Booking 1: Therapist 6
- Booking 2: Therapist 2
- Booking 3: Therapist 1
- Booking 4: Therapist 3
Hope this makes the question a Little bit clearer.