Sha256: 9659e94327ca6c3632e936fc913493e6d82aff3e8ef1f15a15311374e4b5aaba
Contents?: true
Size: 625 Bytes
Versions: 173
Compression:
Stored size: 625 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
173 entries across 173 versions & 1 rubygems