Sha256: 5611ee313434a248456775675cfcc36b284ab8e0ffc4b2715538df48ea67cf72
Contents?: true
Size: 624 Bytes
Versions: 69
Compression:
Stored size: 624 Bytes
Contents
defmodule Tournament do @doc """ Given `input` lines representing two teams and whether the first of them won, lost, or reached a draw, separated by semicolons, calculate the statistics for each team's number of games played, won, drawn, lost, and total points for the season, and return a nicely-formatted string table. A win earns a team 3 points, a draw earns 1 point, and a loss earns nothing. Order the outcome by most total points for the season, and settle ties by listing the teams in alphabetical order. """ @spec tally(input :: list(String.t())) :: String.t() def tally(input) do end end
Version data entries
69 entries across 69 versions & 1 rubygems