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.
BigInt
1 parent a727ad4 commit c092b27Copy full SHA for c092b27
src/hackerrank/interview_preparation_kit/dynamic_programming/max_array_sum.ts
@@ -11,7 +11,7 @@ const bigIntMax = (...args: bigint[]): bigint =>
11
}, BigInt(0));
12
13
function maxSubsetSum(arr: number[]): number {
14
- const arrCopy: bigint[] = arr.map((x: number): bigint => BigInt(x));
+ const arrCopy: bigint[] = arr.map(BigInt);
15
16
if (arrCopy.length === 0) {
17
return 0;
0 commit comments