← Oracle questions
CodingHard

Minimum cost to color balls into K groups

Filed under Oracle

Given N balls, some pre-colored (non-zero) and some uncolored (0). You must color the uncolored balls using M colors. The goal is to ensure the final sequence of balls forms exactly K contiguous…

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

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