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.180 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.179 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.178 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.177 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.176 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.175 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.174 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.173 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.172 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.171 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.170 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.169 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.167 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.166 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.165 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.164 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.163 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.162 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.161 tracks/vimscript/exercises/hamming/hamming.vim
trackler-2.2.1.160 tracks/vimscript/exercises/hamming/hamming.vim