0.0.1 • Published 5 years ago

xero.number-utility v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

xero.number-utility

Top file exports a default object NumberUtility.

Testing

Install all the local dependencies. We use jest for testing. You need to compile the TypeScript first if you make changes, so the script test will first compile and then run the tests.

NumberUtility.NumberTriangle

Usage. NumberTriangle is a class for collections of numbers structured into a triangle. For example, let x = new NumberTriangle([4, 15, 12, 9, 68, 62]). Here x represents a triangle of numbers of the form

The two numbers below and to the left and right of a number in the triangle are its children. For example, at index (0, 0) is number 4 and its children are at indexes (1,0) and (1,1) with values 15, 12.

More documation to come.