[Algorithm] 17 week(5.02 ~ 5.08) 3/3

Dev_min·2022년 5월 7일
0

algorithm

목록 보기
55/157

2236. Root Equals Sum of Children

var checkTree = function(root) {
    if(root.val === root.left.val + root.right.val){
        return true;
    }else{
        return false;
    }
};
profile
TIL record

0개의 댓글