SPOJ dp problem COLORSEG

Revision en1, by nightwing123, 2017-05-31 13:43:03

Can anyone help me with this problem? http://www.spoj.com/problems/COLORSEG/

It seems it requires some state space reduction/some clever optimisation or an entirely different approach.Have been trying this for quite a long time and no solution/hints are available anywhere.Would be grateful if anyone can help

Tags dp, spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nightwing123 2017-05-31 13:43:03 336 Initial revision (published)