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.