Help me in solving in O(n) time

Revision en1, by thakurdivyanshu, 2020-11-17 11:56:07

894A Problem Can someone help me in suggesting a way to solve this problem in O(n) time using dp??(the O(n^3) approach is quite obvious) I am newbie and trying to learn dp.

Tags #dp, #a easy question

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English thakurdivyanshu 2020-11-17 11:56:07 256 Initial revision (published)