TOPIC

10% Wrong Answer - Help/Ajuda/Ayuda

Leandro Lávila Dias Souza asked 7 months ago

Question solved. Code removed.

This topic was solved and cannot recieve new replies.

  • feodorv replied 7 months ago

    Interesting approach but incorrect. The answer for the following input

    5
    5 4 5 6 5

    should be

    0

    Your code gives

    1
  • Leandro Lávila Dias Souza replied 7 months ago

    (Muito obrigado / Muchas gracias / Thanks ) FEODORV !