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.139 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.138 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.137 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.136 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.135 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.134 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.133 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.132 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.131 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.130 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.129 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.128 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.127 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.126 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.125 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.124 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.123 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.122 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.121 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim
trackler-2.2.1.120 tracks/vimscript/exercises/largest-series-product/largest_series_product.vim