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.0.5 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.0.4 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.0.3 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.0.2 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.0.1 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.0.0 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.55 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.54 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.53 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.52 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.51 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.50 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.49 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.48 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.47 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.46 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.45 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.44 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.43 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.1.0.42 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim