Minimum cost for pencils
Filed under Turvo
The question
N students sit in a row. Each student has different prices for 3 types of pencils. Adjacent students cannot use the same type of pencil. Find the minimum cost to buy pencils for all students.
No write-up yet. Related questions below have one.
Related Turvo questions
Collected from public candidate posts and coding forums. Updated Nov 2026.