We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4944eb5 commit 255c373Copy full SHA for 255c373
src/hackerrank/interview_preparation_kit/dynamic_programming/max_array_sum.js
@@ -6,7 +6,7 @@
6
const bigIntMax = (...args) =>
7
args.reduce((m, e) => (e > m ? e : m), BigInt(0));
8
9
-export function maxSubsetSum(arr) {
+function maxSubsetSum(arr) {
10
const arrCopy = arr.map((x) => BigInt(x));
11
12
if (arrCopy.length === 0) {
@@ -32,3 +32,4 @@ export function maxSubsetSum(arr) {
32
}
33
34
export default { maxSubsetSum };
35
+export { maxSubsetSum };
0 commit comments