Sha256: 57e22010c9bf8e6dc0a97a26391ed5db8623580d7147e8e3919803ecac3a5cbf

Contents?: true

Size: 326 Bytes

Versions: 396

Compression:

Stored size: 326 Bytes

Contents

defmodule Hamming do
  @doc """
  Returns number of differences between two strands of DNA, known as the Hamming Distance.

  ## Examples

  iex> Hamming.hamming_distance('AAGTCATA', 'TAGCGATC')
  {:ok, 4}
  """
  @spec hamming_distance([char], [char]) :: non_neg_integer
  def hamming_distance(strand1, strand2) do
  end
end

Version data entries

396 entries across 396 versions & 1 rubygems

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