Deviopath › Go
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.
{in, want}
MaxOf(nums)
0
Write MaxOf(nums).
Next: Fan-In