Date: 11/11/2022
You are given an array arr which consists of only zeros and ones, divide the array into three non-empty parts such that all of these parts represent the same binary value.
Example 1:
Input: arr = [1,0,1,0,1]
Output: [0,3]
Is this working?
function addSum(int1, int2){
let result = int1 + int2;
return result;
}