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.
never give up!!
I've given up on this challenge, thanks for the answer but I can't even remember already wth was going on that challenge, just know that 20 was there and should be the first position of the array from what i remember but instead 0 was given
there are no elements to the left of index
0
, so the left side of index0
sums to0
.in mathematics, the sum of an empty sequence is
0
. this is natural if you want the formulasum(a + b + c + ...) = a + sum(b + c + ...)
to be true in all cases; otherwise, this would not hold forsum(a)
.Can't really understand the description for this one, {1,2,3,4,3,2,1} yeah s ure, 4 is the sum of both the left side and right side of the array.
Then this {1,100,50,-51,1,1} the sum result of 50, -51, 1, 1 is the same as the first position in the array which is 1, sure ok.
But now this part just makes me feel dumb:
"You are given the array {20,10,-80,10,10,15,35}
At index 0 the left side is {}
The right side is {10,-80,10,10,15,35}
They both are equal to 0 when added. (Empty arrays are equal to 0 in this problem)
Index 0 is the place where the left side and right side are equal."
The left side is empty? And Index 0 is the place where the left side and right side are equal? Whaaat?!
Hmm, weird, it wasn't last time I checked, I've unflagged it now.
Your comment is hidden in karenaf's post
Read karenaf's post below.
Well I'm not understanding the description since now I've concatenated the longest strings into one consecutive string but yesterday it said if there was one with the same length just return the first one, but now it doesn't show up?
The description says:
First the abigail theta passes, but after that from the var_dumps I've made it looks like you want us to concatenate with previous positions in array? What? Don't really understand what is there to do
Edit: Think I got it now, read the comment from @jumbi533 his reply which helped saying just CONSECUTIVE longest strings