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 ?
This was the example given: "In the following 6 digit number:
283910
91 is the greatest sequence of 2 digits."
You can see that if you were about to pick the largest from right to left and left to right then 93 would be the return instead, but this picks 91. I think when they say largest "sequence" they mean from left to right only. Does that answer the question you were asking?
dont modify the input array ;-)
Yes the random tests are clearly wrong, it has 7 and 14 confused with each other. It expects [0, 1, 1, 1] ==> 14 when that is 7 and vice versa.