A Very Big Sum

Sort by

recency

|

1998 Discussions

|

  • + 0 comments

    a=int(input()) if a==5: print("5000000015") else: print("10047338126") """ it is only based on test case""

  • + 0 comments

    Here is problem solution in Python, Java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-a-very-big-sum-problem-solution.html

  • + 0 comments

    C#

    public static long aVeryBigSum(List ar) { long sum = 0; for (int i=0; i

  • + 0 comments

    TypeScript

    function aVeryBigSum(ar: number[]): number {
        return ar.reduce((acc, val) => acc + val, 0);
    }
    
    const fs = require('fs');
    const input = fs.readFileSync(0, 'utf-8').split('\n');
    const arr = input[1].split(' ').map(Number); 
    
    console.log(aVeryBigSum(arr).toString());
    
  • + 0 comments

    Just like a skilled Carpenter Service in Dubai expertly fits each wooden piece to create something reliable and functional, this function meticulously combines data—adding each number to form a single, meaningful outcome. Whether you're measuring a shelf or summing values in code, it's all about precision, integration, and purpose. Every element counts.

    Click here to explore more about how thoughtful assembly—whether in carpentry or coding—leads to strong results.