Sha256: 83050ca522103e567b0d5edf48e4f706072b70449fb9fd534b1d39eaff6b7131

Contents?: true

Size: 672 Bytes

Versions: 69

Compression:

Stored size: 672 Bytes

Contents

defmodule Squares do
  @moduledoc """
  Calculate sum of squares, square of sums, difference between two sums from 1 to a given end number.
  """

  @doc """
  Calculate sum of squares from 1 to a given end number.
  """
  @spec sum_of_squares(pos_integer) :: pos_integer
  def sum_of_squares(number) do
  end

  @doc """
  Calculate square of sums from 1 to a given end number.
  """
  @spec square_of_sums(pos_integer) :: pos_integer
  def square_of_sums(number) do
  end

  @doc """
  Calculate difference between sum of squares and square of sums from 1 to a given end number.
  """
  @spec difference(pos_integer) :: pos_integer
  def difference(number) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.138 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.137 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.136 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.135 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.134 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.133 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.132 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.131 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.130 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.129 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.128 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.127 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.126 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.125 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.124 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.123 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.122 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.121 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs
trackler-2.2.1.120 tracks/elixir/exercises/difference-of-squares/difference_of_squares.exs