http://qs321.pair.com?node_id=11113912


in reply to Re: Highest total sum path problem
in thread Highest total sum path problem

Shouldn't this be unambiguous? How far is a "slide"?
up-slide down-slide left-slide up-slide right down right-slide down-slide left up-slide down-slide down-slide left up-slide

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^3: Highest total sum path problem
by tybalt89 (Monsignor) on Mar 06, 2020 at 17:40 UTC

    There were no examples of that in the original post.

    Sigh, yet another case of an incomplete spec.

      <cough> Can you really blame it on the spec?

      Instead you could actually output the distance slid, and move on.

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

        I easily could, but then my output wouldn't match the requested output :)

Re^3: Highest total sum path problem
by LanX (Saint) on Mar 08, 2020 at 01:02 UTC
    > Shouldn't this be unambiguous?

    Well, in this case it is, because the order of the added values is unique.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery