Subarray with given sum
Subarray with given sum is a DSA topic. In plain words you use it for a short Subarray with given sum example in a short dry-run on paper. Don’t start with a slogan — start with that picture.
Smallest example: the smallest Subarray with given sum example you can type. Type it, run it, and say what you see. If you can do that from memory, you know Subarray with given sum.
From the example next to this theory — Subarray with given sum: dry-run [4, 1, 3].
Trap — only saying “Subarray with given sum” with no example. Fix that before you talk about advanced DSA.
Viva: what is Subarray with given sum? Then show the smallest Subarray with given sum example you can type. Then name the trap.
What is Subarray with given sum? Show this: the smallest Subarray with given sum example you can type. Trap: only saying “Subarray with given sum” with no example.