Блог пользователя ritikagupta8734

Автор ritikagupta8734, история, 3 года назад, По-английски

Can someone help me understand the meaning of error message that I am getting here

  • Проголосовать: нравится
  • -23
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

this means that in jurys answer h[i]<=h[i+1] is 446 times and in your answer its 445 times.

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

maybe you haven't read the statement well.. the difficulty of the problem means number of element is not less then it's previous adjacent element(count of ar[i]<=ar[i+1]).. and you have to print the array such that the difference between 1st and last element is minimum and the difficulty is maximum.... so in your solution your difficulty count was not the maximum..