mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 17:50:39 +08:00
Dynamic-Programming : remove live code & console.log, leave examples as comments.
This commit is contained in:
@ -23,10 +23,10 @@ function NumberOfSubsetSum (array, sum) {
|
||||
return dp[sum]
|
||||
}
|
||||
|
||||
function main () {
|
||||
const array = [1, 1, 2, 2, 3, 1, 1]
|
||||
const sum = 4
|
||||
const result = NumberOfSubsetSum(array, sum)
|
||||
console.log(result)
|
||||
}
|
||||
main()
|
||||
// example
|
||||
|
||||
// const array = [1, 1, 2, 2, 3, 1, 1]
|
||||
// const sum = 4
|
||||
// const result = NumberOfSubsetSum(array, sum)
|
||||
|
||||
export { NumberOfSubsetSum }
|
||||
|
Reference in New Issue
Block a user