Track Scala
Scala track

Largest Series Product

An exercise from the Scala track
medium

About this exercise

Given a string of digits, calculate the largest product for a contiguous substring of digits of length n.

integers
optional values
strings
transforming
math
View all solutions