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 5f60595 commit e1d9eefCopy full SHA for e1d9eef
src/hackerrank/interview_preparation_kit/dynamic_programming/max_array_sum.ts
@@ -6,7 +6,7 @@
6
const bigIntMax = (...args: bigint[]): bigint =>
7
args.reduce((m, e) => (e > m ? e : m), BigInt(0));
8
9
-export function maxSubsetSum(arr: number[]): number {
+function maxSubsetSum(arr: number[]): number {
10
const arrCopy: bigint[] = arr.map((x: number): bigint => BigInt(x));
11
12
if (arrCopy.length === 0) {
@@ -32,3 +32,4 @@ export function maxSubsetSum(arr: number[]): number {
32
}
33
34
export default { maxSubsetSum };
35
+export { maxSubsetSum };
0 commit comments