# Recognising dynamic programming — DSA Interview Patterns

Source: https://www.geekswithgeeks.com/en/dsa-interview-patterns/dsa-interview-patterns-21

> Use Recognising dynamic programming to make a clear, evidence-based decision.

## Understand Recognising dynamic programming

Start by naming the decision behind **Recognising dynamic programming**. A strong answer explains the goal, the constraints, and the evidence you would use before acting. Do not treat a checklist as understanding: connect each step to the outcome it protects.

## Keep the workflow visible

Use this simple path while practising **Recognising dynamic programming**: understand the situation, make one deliberate choice, then review the result.

![A four-stage workflow for Recognising dynamic programming.](assets/figures/dsa-interview-patterns/section-5-map.svg) — Figure 5.1 — Decide, act, check and improve.

## A useful comparison

Think of **Recognising dynamic programming** like planning a journey: a destination without a route is only a wish, while a route without a destination wastes effort.

Check the decision, not just the terminology.

**Quiz:** What is the most useful way to apply Recognising dynamic programming?

- [x] State the goal, constraints and evidence before choosing an action.
- [ ] Copy a template without checking whether it fits.
- [ ] Use the most complex option first.

*Answer:* State the goal, constraints and evidence before choosing an action.. Good practice makes the reasoning visible, so you can review and improve it.
