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.98 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.97 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.96 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.95 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.94 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.93 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.92 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.91 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.90 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.89 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.88 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.87 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.86 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.85 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.84 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.83 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.82 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.81 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.80 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.79 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim