โ† Amazon questions

Minimum smoke from merging jars

Filed under Amazon

Given n jars in a line with color values (0-99), merging adjacent jars 'a' and 'b' produces a new color (a+b)%100 and smoke (a*b). Find the minimum total smoke to merge all jars into one.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.