Did you mean # should be 6: [2, -1, 4, 1]?
# should be 6: [2, -1, 4, 1]
This comment is hidden because it contains spoiler information about the solution
A contiguous sequence is as follows.
A, B, C, D, E , F
ABC is a contiguous sequence. ABD is not.
CDEF is a contiguous sequence, ACDEF is not.
DEF is a contiguous sequence, FED is not.
Delete everything under the def max_sequence(arr): when starting.
The empty code given by the writer seems to cause issues (probably a sneaky space somewhere).
Yes, it's Python. I'm not sure what was wrong with my indentations but it resolved itself and I finished the kata. Thanks!
Hi. Please say which language you're using when posting in Discourse. I guess it' Python. You must revise your code (in the message log you're given the line that makes your code fail), this message is from the Python interpreter, the problem can hardly be elsewhere than from your code.
I get "inconsistent use of tabs and spaces in indentation" - error with this kata. Not something I have experienced with other katas. I always indent with tabs.
This is actually not an uncommon programming problem
and used in many coding interviews.
Thanks a lot, i was struggling to understand the test.
Random array solution not as expected: expected:<82> but was:<101>
Example array should have a max of 6 expected:<6> but was:<101>
Example array with all negative values should have a max of 0 expected:<0> but was:<101>
Evert time I attemt there are some but was:<101> numbers.I guess java code is wrong
This sounds like you have at least one off-by-1 error somewhere in your index loops.