프로그래머스 숫자 문자열과 영단어
https://school.programmers.co.kr/learn/courses/30/lessons/81301 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr function solution(s) { const arr = ["zero","one","two","three","four","five","six","seven","eight","nine"] for(let i = 0; i { const..
2023. 6. 19.
프로그래머스 모의고사 자바스크립트
https://school.programmers.co.kr/learn/courses/30/lessons/12917 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr function solution(answers) { const one = [1,2,3,4,5] const two = [2, 1, 2, 3, 2, 4, 2, 5] const thr = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5] const answer = [0,0,0] const result = [] for(i in answers) { if(answers[i] === one[i % one..
2023. 6. 19.