Ad
  • Custom User Avatar

    Learn 50 or so programming languages, and you learn some tricks along the way.

  • Custom User Avatar

    think of it from the index perspective. if the indexes are 1,2,3 thats a contiugous sequence. if the indexes are 4,5,6 thats a contiguous sequence. if the indexes are 0,6,4 or 2,3,6 that would not be. The indexes have to be in order for it to be a contiguous sequence. This challenge is tricky because of the negative numbers. you could have a longer sequence equal less because it could have a higher negative number. Hope this helps, as I was stuck on what it meant myself.

  • Custom User Avatar

    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.

  • Custom User Avatar

    @awesomead thanks for that description lol he would be giving the question away if he gave to much detail this is like a 4th grade math problem I was feeling dumb

  • Custom User Avatar

    IDK why im having such a hard time figuring out what a contiguous sequence is like I know how to solve this but I need to understand that part first in order to do so, any help?

  • Custom User Avatar

    idk how in the world this works lol howd you come up with this