Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8dbe8e7

Browse files
solve: 등차수열의 특정항 항만 더하기
1 parent d22fe10 commit 8dbe8e7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

‎Level0/PRO181931.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Solution 1
2+
function solution(a, d, included) {
3+
return included.reduce((acc, cur, index) => (cur ? acc + a + d * index : acc), 0);
4+
}

‎README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@
302302

303303
### 2023년 12월
304304

305-
| 날짜 | 난이도 | 문제 | JS 풀이 |
306-
| :-------: | :-------: | :---------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
307-
| 23.12.01. | `Level 0` | [이차원 배열 대각선 순회하기](https://school.programmers.co.kr/learn/courses/30/lessons/181829) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181829.js) |
308-
| 23.12.03. | `Level 0` | [수열과 구간 쿼리 4](https://school.programmers.co.kr/learn/courses/30/lessons/181922) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181922.js) |
305+
| 날짜 | 난이도 | 문제 | JS 풀이 |
306+
| :-------: | :-------: | :-----------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
307+
| 23.12.01. | `Level 0` | [이차원 배열 대각선 순회하기](https://school.programmers.co.kr/learn/courses/30/lessons/181829) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181829.js) |
308+
| 23.12.03. | `Level 0` | [수열과 구간 쿼리 4](https://school.programmers.co.kr/learn/courses/30/lessons/181922) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181922.js) |
309+
| 23.12.05. | `Level 0` | [등차수열의 특정한 항만 더하기](https://school.programmers.co.kr/learn/courses/30/lessons/181931) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181931.js) |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /