← Salesforce questions

Minimum Time to Color Pencils

Filed under Salesforce

Given an array representing pencil color tasks and a brush refill time b, calculate the minimum time required to color all pencils. You can either paint the current pencil or wait for the brush to…

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 Salesforce questions

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