일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 백준 node.js
- 모던 javascript Deep Dive
- KDT 프로그래머스
- 개발자 특강
- TypeScript 문법 소개
- react 프로젝트 리팩토링
- 프로그래머스 데브코스
- 투포인터알고리즘 js
- 모던 자바스크립트 TIL
- 백준 js
- 프로그래머스 데브코스 프론트엔드
- 모던 자바스크립트 Deep Dive TIL
- 모던 자바스크립트 딥다이브
- 머쓱이
- 리팩토링 회고
- Vue3
- frontend roadmap study
- Frontend Roadmap
- Vue3 Router
- 프로그래머스 K_Digital Training
- 모던 자바스크립트 Deep Dive
- K_Digital Training
- react customHook 예시
- useEffect return
- 프로그래머스 데브코스 프론트엔드 TIL
- 인프런 자바스크립트 알고리즘 문제풀이
- useRef 지역 변수
- 우테캠 회고록
- 프로그래머스 K_Digital Training 프론트엔드
- KDT 프로그래머스 데브코스 프론트엔드
- Today
- Total
목록알고리즘_JS (113)
프론트엔드 개발자의 기록 공간
🚩 프로그래머스 Level1 직사각형 별찍기 process.stdin.setEncoding('utf8'); process.stdin.on('data', data => { const n = data.split(" "); const a = Number(n[0]), b = Number(n[1]); let x = ""; for(let i=0; i
🚩 프로그래머스 Level1 x만큼 간격이 있는 n개의 숫자 function solution(x, n) { var answer = []; for(let i=1; i
🚩 프로그래머스 Level1 행렬의 덧셈 function solution(arr1, arr2) { //이차원 배열 생성 var answer = Array.from(Array(arr1.length), () => new Array(arr1[0].length)) //행렬 덧셈 for(let i=0; i
🚩 프로그래머스 Level1 핸드폰 번호 가리기 function solution(phone_number) { //뒤 4자리만 추출 var answer = phone_number.split("").slice(-4); //뒤 4개를 뺀 문자열 길이만큼 *의 개수 구하기 let n = phone_number.length - answer.length; let re = '*'.repeat(n); //*와 뒤 4자리 합치기 answer.splice(0,0,re); //문자열로 변환 answer = answer.join("") return answer; }
🚩 프로그래머스 Level1 하샤드 수 function solution(x) { //자리수별로 문자열로 변환후 reduce이용하여 자릿수 합 구함 let result = String(x).split(""). reduce((acc,cur) => Number(acc)+Number(cur),0); var answer = x % result === 0 ? true : false return answer; }