We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
For the test cases privided it does, but what if the integers are incredibly long? JS can't handle integers with more than 15 characters, and returns approximations. You need to import a library like big-num or write a very complicated workaround to deal with large integers.
A Very Big Sum
You are viewing a single comment's thread. Return to all comments →
For the test cases privided it does, but what if the integers are incredibly long? JS can't handle integers with more than 15 characters, and returns approximations. You need to import a library like big-num or write a very complicated workaround to deal with large integers.