We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 437e305 commit 0bf2154Copy full SHA for 0bf2154
tkddbs587/Array/Matrix_addition.js
@@ -0,0 +1,14 @@
1
+function solution(arr1, arr2) {
2
+ let answer = [];
3
+
4
+ for (let i = 0; i < arr1.length; i++) {
5
+ let newRow = [];
6
7
+ for (let j = 0; j < arr1[i].length; j++) {
8
+ newRow.push(arr1[i][j] + arr2[i][j]);
9
+ }
10
+ answer.push(newRow);
11
12
13
+ return answer;
14
+}
tkddbs587/Array/duplicate_count.js
@@ -0,0 +1,3 @@
+function solution(array, n) {
+ return array.filter((el) => el === n).length;
0 commit comments