the-algorithm
the-algorithm copied to clipboard
Change algorithm
There is no difference in efficiency to prevent overflow when adding low and high. You can avoid using this method to convert long sum=(long) low+high in the future. If this tool class needs to perform a larger range of calculations in the future