Given a set $$S$$ of non-negative integers, determine if there is a subset of $$S$$ such that the sum of all elements in $$S$$ equals a given integer $$v \in \mathbb{N}$$.

Assignment

Example

>>> hasSubset({1, 2, 3, 7}, 6)
True

>>> findSubset({1, 2, 3, 7}, 6)
{1, 2, 3}