Simple Logic No Need For DP


#1

Solution is possible without using dp, just use common sense, does not need to find entire sub - sequence, go for minimal assertion condition.


#2

@death_machine, you idea sounds interesting!!
highly appreciate if you can explain your solution hereā€¦