Sha256: aca04441058e72c95b0cd800c2869c35650b2c6d4a946dedff9720272269bec2

Contents?: true

Size: 369 Bytes

Versions: 200

Compression:

Stored size: 369 Bytes

Contents

"
" Given a string of digits, calculate the largest product for a contiguous
" substring of digits of length n.
"
"   :echo LargestProduct('1234', 1)
"   4
"   :echo LargestProduct('1234', 2)
"   12
"   :echo LargestProduct('1234', 3)
"   24
"   :echo LargestProduct('1234', 4)
"   24
"

function! LargestProduct(digits, span) abort
  " your code goes here
endfunction

Version data entries

200 entries across 200 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.179 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.178 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.177 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.176 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.175 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.174 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.173 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.172 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.171 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.170 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.169 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.167 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.166 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.165 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.164 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.163 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.162 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.161 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.160 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim