Shellhead96's blog

By Shellhead96, history, 7 years ago, In English

I'm stuck at this question for some time and referred to this solution and just wanted to ask how " maxH = max(maxH, (d[i+1]-d[i])/2+(h[i]+h[i+1])/2 ) " term can be derived. I am interpreting it as the minimum height in consecutive interval and taking max of them. How it can be derived. Thanks

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