이노베이션 캠프
-
[JS] 키패드 누르기이노베이션 캠프/3주차_알고리즘 2023. 6. 20. 22:35
문제 https://school.programmers.co.kr/learn/courses/30/lessons/67256 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 풀이 function solution(numbers, hand) { // 조건: 키패드를 2차원 배열로 받아드림, row & col 값으로 현재 손의 좌표 값 표시 // 예: 1번 선택 (leftRow=0, leftCol=0) // 1 2 3 // 4 5 6 // 7 8 9 // * 0 # // 1. 필요한 변수 선인 및 할당 let leftThumb = [1, 4, 7]; // 왼손 ..
-
WIL이란?이노베이션 캠프/WIL 2023. 6. 19. 21:33
오늘부터 WIL을 작성하고자 한다. WIL이 정확하게 뭔지 몰라서 한번 찾아봤더니 아래 내용을 확인할 수 있었다. WIL (Weekly I Learned) 주간 동안 내가 배운 것을 블로그에 정리하는 것을 의미 배운것 / 느낀것 / 내게 아쉬웠던 것들을 정리 위의 과정을 통해 대표적으로 아래에 명시된 것들을 얻을 수 있음 생각 정리 나의 생활 패턴 생성 나의 현재 상태 확인 즉, 이번 주를 어떻게 보냈나 돌아보고 나를 점검할 수 있는 시간을 가질 수 있도록 도와주는 하나의 장치이다. 사실 위의 내용만 봤을 때 어떤 내용들로 글을 채워야하나 고민이 많았는데 오늘의 글은 매니저님이 제시해주신 내용으로 채워보고자 한다. 내가 어떤 삶을 살아왔고, 어떤 계기로 개발자 진로와 이노캠을 결심했고, 앞으로 어떻게 이..
-
[JS] 신규 아이디 추천이노베이션 캠프/3주차_알고리즘 2023. 6. 19. 20:04
문제 https://school.programmers.co.kr/learn/courses/30/lessons/72410 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 풀이 최종 제출 function solution(new_id) { let temp = ''; // 1단계 소문자로 치환 temp = new_id.toLowerCase(); // 2단계 알파벳 소문자, 숫자, -, _, .를 제외한 모든 문자를 제거 temp = temp.replace(/[^a-z0-9\-_.]/gi, ""); // 3단계 .가 2번 이상 연속된 부분을 하나의 마침표(.)..
-
[JS] 시저 암호이노베이션 캠프/3주차_알고리즘 2023. 6. 19. 19:52
문제 https://school.programmers.co.kr/learn/courses/30/lessons/12926 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 풀이 function solution(s, n) { let result = ""; const uppers = Array.from({ length: 26 }, (v, i) => String.fromCharCode(i + 65)); const lowers = Array.from({ length: 26 }, (v, i) => String.fromCharCode(i + 97)); for(let..
-
[JS] 숫자 문자열과 영단어이노베이션 캠프/3주차_알고리즘 2023. 6. 19. 19:50
문제 https://school.programmers.co.kr/learn/courses/30/lessons/81301 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 풀이 최종 풀이 function solution(s) { let word = {"zero":"0", "one":"1", "two":"2", "three":"3", "four":"4", "five":"5", "six":"6", "seven":"7", "eight":"8", "nine":"9" }; let result = s; for (key of Object.keys(word)) { i..
-
[JS] 문자열 내림차순으로 배치하기이노베이션 캠프/3주차_알고리즘 2023. 6. 19. 19:36
문제 https://school.programmers.co.kr/learn/courses/30/lessons/12917 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 풀이 function solution(s) { let upperCases = []; // 대문자 let lowerCases = []; // 소문자 for (let i=0; i
-
[JS] 문자열 내 마음대로이노베이션 캠프/3주차_알고리즘 2023. 6. 19. 19:30
문제 https://school.programmers.co.kr/learn/courses/30/lessons/12915 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 풀이 최종 풀이 function solution(strings, n) { let temp = {}; for (string of strings) { let char = string[n]; let t = (char in temp) ? temp[char] : []; t.push(string); t.sort(); temp[char] = t; } let result = []; let sortKe..