Modified Bowling Game Max Score
Filed under Uber
The question
Given an even number of pins arranged in a line with point values arr, you repeatedly knock down two adjacent pins at positions i and i+1. Pins at i-1 and i+2 then become adjacent, yielding arr[i-1]*arr[i]*arr[i+1]*arr[i+2] points (out of bounds pins have value 1). Return the maximum possible total points modulo 10^9 + 7.
No write-up yet. Related questions below have one.
Related Uber questions
Collected from public candidate posts and coding forums. Updated Nov 2026.