Sha256: ebe87adbf16e85da8abfc95e6cc316d77a6c5662c1caba3479b791eb6db83300

Contents?: true

Size: 300 Bytes

Versions: 222

Compression:

Stored size: 300 Bytes

Contents

"
" This function takes two strings which represent strands and returns
" their Hamming distance.
"
" If the lengths of the strands don't match, throw this exception:
"
"     'The two strands must have the same length.'
"
function! Hamming(strand1, strand2)

  " your solution goes here

endfunction

Version data entries

222 entries across 222 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.97 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.96 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.95 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.94 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.93 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.92 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.91 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.90 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.89 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.88 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.87 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.86 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.85 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.84 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.83 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.82 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.81 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.80 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.79 tracks/vimscript/exercises/hamming/hamming.vim