Ad
  • Default User Avatar

    if your using python you can use try:
    except:

  • Custom User Avatar

    No it isn't and it's been discussed before.

    There is no looping:

    For incrementing sequences, 0 should come after 9, and not before 1, as in 7890.

    For decrementing sequences, 0 should come after 1, and not before 9, as in 3210.

    In 109, 0 is before 9, opposed to what's written there.

  • Custom User Avatar

    I think you're correct. 109 is interesting, but it's entered as a test case for "close to interesting" (output=1). 109 matches the pattern for the decrementing sequence: 0 comes after 1, but not before 9. Therefore: 2109 and 321098 would also be interesting numbers.

  • Custom User Avatar

    nope

    only one number per row

  • Custom User Avatar

    read the description carefully again

    you need to find the largest path down, starting from the top of the pyramid(first row) till the last(last row)

    consecutive refers to going from one 'layer' of the pyramid to another

  • Custom User Avatar

    No, it isn't. Why would it be? Check the posts below.