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