Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Sure, just reply to this comment and post your code in Markdown using two sets of three backticks, see here: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code
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 ?
dont modify the input array ;-)