Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- JS
- 변수 js
- 다단계큐
- 자바스크립트 for of
- 프로그래머스 자바스크립트
- javascript
- 알고리즘 js
- programmers
- 디자인 패턴
- 프로그래머스 자릿수 더하기
- 자바스크립트 sqrt
- 프로그래머스 입문
- 자바스크립트 pow
- 자바스크립트 ceil
- 자바스크립트 min
- 자바스크립트 round
- 딥다이브 변수
- 프로그래머스 옹알이
- 자바스크립트 floor
- 알고리즘
- 프로그래머스 알고리즘
- 프로그래머스 js
- 프로그래머스
- reduce
- 데이터베이스 key
- 자바스크립트 max
- 선점 비선점
- 자바스크립트
- 자바스크립트 for in
- 자바스크립트 abs
Archives
- Today
- Total
목록프로그래머스 다항식 더하기 (1)
eazyseon

- 문제 설명 - 입출력 예시 - 나의 풀이 function solution(polynomial) { let answer = ''; let coefficient = 0; //계수 let constant = 0; //상수 const terms = polynomial.split(' + '); //' + '로 나누기 [ '3x', '7', 'x' ]출력 for (let i = 0; i '3x' / '7' / 'x' const [numStr, variable] = term.split('x'); // 'x'를 기준으로 나눔 => '3' '' / '7' 이런식으로 출력 if (variable === '') { // ..
🧐알고리즘?알고싶음!
2023. 3. 1. 16:38