Sha256: 4d9f68ca07ac93c07f07783577ad999bb463d72eb5b37323b830a62f4f3c0b9f
Contents?: true
Size: 502 Bytes
Versions: 114
Compression:
Stored size: 502 Bytes
Contents
## Implementation Define ```type Classification``` for containing the classification values for natural numbers. You may choose any representation for this type. Define three Classification constants named ``` ClassificationDeficient ClassificationPerfect ClassificationAbundant ``` Implement a function named Classify which accepts an int64 input and returns a Classification and an error value. Create an error named ErrOnlyPositive which is returned when the input is not a positive integer.
Version data entries
114 entries across 114 versions & 1 rubygems