ritikagupta8734's blog

By ritikagupta8734, history, 3 years ago, In English

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

  • Vote: I like it
  • -23
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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..