Dynamic programming (DP) is one of the more advanced (and confusing) parts of data structures and algorithms, so much so that Meta has actually banned their interviewers from asking DP questions. Unfortunately, most other companies aren't afraid to throw a DP question out there, so it's best for you to be prepared.
If you need additional support taking those skills and actually applying them, take Alvin's complete data structures and algorithms course on Structy. You can try out the concepts yourself in their interactive code editor and learn advanced DSA patterns like stack exhaustive recursion.
Use this link to get 20% off the entire Structy DSA learning experience (discount code TARO20).