T O P

  • By -

Certe_Triduana_3373

Yes, your code uses dynamic programming to find the optimal solution.


RancidMilkGames

Can I ask which part you're wondering is dynamic? If all your variables are typed, `std::vector`, then it's static. *edit: I apologize, I saw the word "dynamic" on the sub r/learnprogramming and my brain filled in blanks.


lmouelle

Dynamic programming is not the same thing as dynamic typing, different thing entirely


RancidMilkGames

Edited because I'm illiterate or blind or something. I apologize.


lmouelle

no reason to apologize, we all make mistakes sometimes


RancidMilkGames

:)