Loading page…
An interval table has one state for every range of the input. Each range is solved by trying every split point and joining the best answers of two shorter ranges, and the table is filled by length, never row by row. The cost is cubic time and square memory. Three shapes cover most problems: split into two parts, choose the last item removed, and peel one end.
You work on a platform that stores build logs in shards, laid out in a row.