Apple logoApple
CodingMembers

Subset Sum and All Subsets with Given Sum

Members only

Two-part phone-screen prompt: given an array and a target, first decide whether any subset sums to the target using DP with space optimized to O(target) and O(n * target) time; then return all subsets...

SWE
array
dp
backtracking
medium
Frequency
Single report
Last asked
2026-07-07
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...