Small typo fix
This commit is contained in:
parent
74cfe3bfe7
commit
30bb6699b5
|
@ -712,7 +712,7 @@ However, if the list remains the same but $x=10$,
|
||||||
it is not possible to form the sum.
|
it is not possible to form the sum.
|
||||||
|
|
||||||
A standard solution for the problem is to
|
A standard solution for the problem is to
|
||||||
go trough all subsets of the elements and
|
go through all subsets of the elements and
|
||||||
check if the sum of any of the subsets is $x$.
|
check if the sum of any of the subsets is $x$.
|
||||||
The time complexity of this solution is $O(2^n)$
|
The time complexity of this solution is $O(2^n)$
|
||||||
because there are $2^n$ possible subsets.
|
because there are $2^n$ possible subsets.
|
||||||
|
|
Loading…
Reference in New Issue