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.
BigInt() will consume more time. If we know that one is longer than the other, we dont need to use BigInt() because the length tells us which is greater, so we only use BigInt() when they are equal in length, because the length won't tell us which is greater in this case. Cheers
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
BigInt() will consume more time. If we know that one is longer than the other, we dont need to use BigInt() because the length tells us which is greater, so we only use BigInt() when they are equal in length, because the length won't tell us which is greater in this case. Cheers