Sha256: c4b6f1dd97a04836673c8a525f6df457a9b5d076653fed07955ce196658b499c

Contents?: true

Size: 335 Bytes

Versions: 69

Compression:

Stored size: 335 Bytes

Contents

defmodule CollatzConjecture do
  @doc """
  calc/1 takes an integer and returns the number of steps required to get the
  number to 1 when following the rules:
    - if number is odd, multiply with 3 and add 1
    - if number is even, divide by 2
  """
  @spec calc(number :: pos_integer) :: pos_integer
  def calc(input) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.179 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.178 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.177 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.176 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.175 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.174 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.173 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.172 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.171 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.170 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.169 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.167 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.166 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.165 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.164 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.163 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.162 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.161 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs
trackler-2.2.1.160 tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs