Haribo ML, AI, MATH, Algorithm

음양 더하기


def solution(absolutes, signs):
    return sum(absolute if sign else -absolute for absolute, sign in zip(absolutes, signs))

Similar Posts

이전 포스트 MNIST with DNN Regularzation

다음 포스트 괄호 회전하기

Comments