Skip to content

Commit 03ae49b

Browse files
authored
Merge pull request #434 from planet-devo-k/Insung-Jo
`week48` 문제 완료
2 parents a08c142 + f07898c commit 03ae49b

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function solution(str1, str2) {
2+
return str2.includes(str1) ? 1 : 0;
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function solution(my_string, target) {
2+
return my_string.includes(target) ? 1 : 0;
3+
}

Insung-Jo/level_1/내적.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function solution(a, b) {
2+
let sum = 0;
3+
4+
for (let i = 0; i < a.length; i++) {
5+
sum += a[i] * b[i];
6+
}
7+
8+
return sum;
9+
}

0 commit comments

Comments
 (0)