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 11a2292

Browse files
solve: 특별한 이차원 배열 1
1 parent a534074 commit 11a2292

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

‎Level0/PRO181833.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Solution 1
2+
function solution(n) {
3+
return Array.from({ length: n }, (_, firstIndex) =>
4+
Array.from({ length: n }, (_, secondIndex) => (firstIndex === secondIndex ? 1 : 0))
5+
);
6+
}

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,4 @@
310310
| 23.12.09. | `Level 0` | [커피 심부름](https://school.programmers.co.kr/learn/courses/30/lessons/181837) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181837.js) |
311311
| 23.12.23. | `Level 0` | [수열과 구간 쿼리1](https://school.programmers.co.kr/learn/courses/30/lessons/181883) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181883.js) |
312312
| 23.12.25. | `Level 0` | [주사위 게임 1](https://school.programmers.co.kr/learn/courses/30/lessons/181839) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181839.js) |
313+
| 23.12.26. | `Level 0` | [특별한 이차원 배열 1](https://school.programmers.co.kr/learn/courses/30/lessons/181833) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181833.js) |

0 commit comments

Comments
(0)

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