# SOLDVAL - Editorial

**URL:** <https://discuss.codechef.com/t/soldval-editorial/80732>\
**Category:** editorial\
**Tags:** dynamic-programming, easy, editorial, infy20\
**Created:** [November 4, 2020, 9:54am UTC](https://discuss.codechef.com/t/soldval-editorial/80732 "2020-11-04T09:54:07Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![zappelectro](https://discuss.codechef.com/user_avatar/discuss.codechef.com/zappelectro/32/104645_2.png) [@zappelectro](https://discuss.codechef.com/u/zappelectro)\
**Post date:** [November 6, 2020, 5:01am UTC](https://discuss.codechef.com/t/soldval-editorial/80732/23 "2020-11-06T05:01:54Z")

</div>

We are storing minimum prefix and suffix for every element right ? Later, we are just taking min of prefix and suffix.

[Previous page](https://discuss.codechef.com/t/soldval-editorial/80732.md?page=1)
