Skip to content

From Small to BIGGER

Menu
  • Home
  • About Us
  • Portofolio
  • Contact
Menu

Hackerrank – A Very Big Sum

Posted on June 1, 2022January 16, 2023 by kura
Sample Input
5
1000000001 1000000002 1000000003 1000000004 1000000005
Out Put
5000000015
<?php
function aVeryBigSum($ar) {
    return array_sum($ar);
}

$ar = [1000000001, 1000000002, 1000000003, 1000000004, 1000000005];
echo aVeryBigSum($ar);
FacebookTweetLinkedIn

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Laravel & Datatables – Server Side Manualy
  • Linux – User Login Set Directory & Set Permission
  • Javascript Call Function From iFrame
  • Python – Create data dummy attendance
  • PHPWord Convert HTML + PDF

Categories

  • Apache
  • Database
  • Freeradius
  • Javascript
  • Mikrotik
  • Mysql
  • Networking
  • PHP
  • Postgresql
  • Programming
  • Python
  • Server
©2025 From Small to BIGGER | Built using WordPress and Responsive Blogily theme by Superb