[ 프로그래머스 ] #1835 : 단체사진 찍기 - JAVA
🔗단체사진 찍기import java.util.ArrayList;import java.util.List;class Solution { static char[]friends={'A', 'C', 'F', 'J', 'M', 'N', 'R', 'T'}; static int count =0; public int solution(int n, String[] data) { //{조건을 제시한 프렌즈}~{상대방}{=,}{두 프렌즈 사이 사른 프렌즈의 수} //모든 조건을 만족할 수 있도록 서는 경우의 수를 계산 count =0; boolean[]visited=new boolean[friends.length]; List arrange=new ..