Approach hintTry it first, then revealHide
Bezout's identity describes exactly which integers can be written as an integer combination of a set of numbers. Think about what it says for the whole array instead of searching over subsets.
Bezout's identity describes exactly which integers can be written as an integer combination of a set of numbers. Think about what it says for the whole array instead of searching over subsets.