Track C
C track

Largest Series Product

An exercise from the C track
medium

About this exercise

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

control flow loops
performance optimizations
strings
math
View all solutions