Zheng Fu 5dd27f88e4 simplifying the mathematical solution for Sum All Numbers in a Range (#35007)
* simplifying the mathematical solution

We don't need to sort the two number array, using Math.abs() we can get the count of the numbers in range and calculate the sum.

* Remove previously relevant info regarding sort()

* Clarify code for better readability

* change let to const according to review

* added missing semicolon
2019-03-27 22:26:59 +05:30
..