Unpainted Segments
Google interview questions · Medium · Coding round · 6 tests
For each paint operation, report how much brand-new length was covered before updating the wall.
The full question, tests and reference solution are available with a plan that includes Google.
Run your code with Ctrl+Enter to see results.