Deviopath › Go

Table of Cases

Medium · Testing

Go tests are often a slice of structs: {in, want}. MaxOf(nums) should return the largest value, or 0 for an empty slice. Think of each test row as one struct in a table.

Write MaxOf(nums).

Next: Fan-In