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 fe5facb

Browse files
solve: 특별한 이차원 배열 2
1 parent f6fcaa9 commit fe5facb

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎Level0/PRO181831.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Solution 1
2+
function solution(arr) {
3+
for (let i = 0; i < arr.length; i++) {
4+
for (let j = 0; j < arr[i].length; j++) {
5+
if (arr[i][j] !== arr[j][i]) {
6+
return 0;
7+
}
8+
}
9+
}
10+
11+
return 1;
12+
}

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,3 +293,4 @@
293293
| 23.11.22. | `Level 0` | [더 크게 합치기](https://school.programmers.co.kr/learn/courses/30/lessons/181939) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181939.js) |
294294
| 23.11.23. | `Level 0` | [구슬을 나누는 경우의 수](https://school.programmers.co.kr/learn/courses/30/lessons/120840) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO120840.js) |
295295
| 23.11.24. | `Level 0` | [콜라츠 수열 만들기](https://school.programmers.co.kr/learn/courses/30/lessons/181919) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181919.js) |
296+
| 23.11.25. | `Level 0` | [특별한 이차원 배열 2](https://school.programmers.co.kr/learn/courses/30/lessons/181831) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181831.js) |

0 commit comments

Comments
(0)

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