Help me in solving in O(n) time

Правка en1, от 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.

Теги #dp, #a easy question

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский thakurdivyanshu 2020-11-17 11:56:07 256 Initial revision (published)