Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubsetSumBrute ¶
SubsetSumBrute returns the subset by performing a brute-force search. The first possible result is return if found, otherwise the search is exhaustive. The runtime is exponential.
func SubsetSumDP ¶
SubsetSumDP returns the subset using dynamic programming. The runtime is O(N*K) with O(N*K) space.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.