Leetcode 3183. The Number of Ways to Make the Sum
Given a target sum and a list of positive integers (e.g., coin values), count how many distinct ways to form that sum under the problem's rules about reuse and order; this is a counting/knapsack DP problem where you build states for partial sums and usually handle large counts with modulus arithmetic.
Asked at:
LinkedIn
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late August, 2026
Mid-level
The standard problem with duplicates allowed and an element can be picked at most once.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.