체육복도난사건

    알고리즘 - 체육복 도난사건,,,!!!!!

    알고리즘 - 체육복 도난사건,,,!!!!!

    function solution(n, lost, reserve) { var answer = 0; let have = []; console.log(n); // 1~n까지의 학생 for(let i = 1; i reserve.includes(el) || reserve.includes(el-1)|| // reserve.includes(el+1)) // } for(let i = 0; i lost.includes(el) || lost.includes(el-1)|| lost.includes(el+1)) } // 그럼 help엔 빌려주는 애가 들어가게 된다. // help의 length만큼 더하면 되나? 그러면 또 중복.. ? ..