Ankit_12's blog

By Ankit_12, history, 5 weeks ago, In English

Hello Everyone I have a question related to Dynamic Programming. Whenever you are trying to solve DP question in the ongoing contest you first think recursive or you directly write the code in tabulation format.

 
 
 
 
  • Vote: I like it
  • +1
  • Vote: I do not like it

»
5 weeks ago, # |
  Vote: I like it +30 Vote: I do not like it

In the ongoing contest you should do your best, thus use recursive if you are used to it more than the iterative (or vice versa). When you practice, solve problems in both iterative and recursive ways, it will only increase your algorithmic skills.

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

recursive approach is easier.But i haven't seen much solutions or submissions with recursive code I think that because the time complexity calculation in tabular form is straightforward.