[프로그래머스/JS] lv1: 모의고사
문제
https://school.programmers.co.kr/learn/courses/30/lessons/42840
단순한 완전탐색 문제!
풀이
1,2,3번 수포자들의 패턴을 배열로 정리한다.
const first = [1,2,3,4,5];
const second = [2,1,2,3,2,4,2,5];
const third = [3,3,1,1,2,2,4,4,5,5];
ls 배열을 선언하고 해당 배열에 순서대로 1,2...
studio-pendant.hashnode.dev2 min read