Skip to content

Commit

Permalink
Merge pull request #501 from Mirim-Study/JiaLee0707-patch-3
Browse files Browse the repository at this point in the history
level01.μŒμ–‘_λ”ν•˜κΈ°
  • Loading branch information
JiaLee0707 authored Oct 2, 2022
2 parents 14f1f6d + 254f962 commit bd63468
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function solution(absolutes, signs) {
var answer = 0;

for (const [index, value] of absolutes.entries()) {
answer += signs[index] ? value : -value;
}
return answer;
}

0 comments on commit bd63468

Please sign in to comment.