Sha256: a4de09f8feba14aedc77c877251c5658f58e2ec1d6616e82721e7698e256cb15

Contents?: true

Size: 409 Bytes

Versions: 86

Compression:

Stored size: 409 Bytes

Contents

## Implementation

Define a single Go func, Cost, which calculates the cost
for a given list of books based on the defined discounts.

Use the following signature for func Cost:

```
func Cost(books []int) int
```
Cost will return the total cost (after discounts) in cents.
For example, for a single book, the cost is 800 cents, which equals $8.00.
Only integer calculations are necessary for this exercise.

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.97 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.96 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.95 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.94 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.93 tracks/go/exercises/book-store/.meta/hints.md