Ad
  • Custom User Avatar

    Facing the same problem :-
    Tests 0,0,1,0 ==> 2
    Expected: 4, instead got: 2
    Tests 1,0,1,1 ==> 11
    Expected: 13, instead got: 11
    Tests 1,0,1,0 ==> 10
    Expected: 5, instead got: 10
    Tests 1,1,1,0 ==> 14
    I am also not modifying the input arr Can anyone help me in this.
    if you want I can paste my soltion in comments ?