About this puzzle

Cut the Cable — practice the decision, scored against the optimum

What does the Cut the Cable puzzle teach?

Slice a cable into priced piece-lengths summing to exactly its length for the most money — that's an unbounded-knapsack DP, not best-price-per-unit greed.

Why do interviews ask about this?

Unbounded knapsack / rod cutting — the canonical reuse-subproblem-optima-over-a-1D-length DP, testing whether you reach for value-density greed or spot the overlapping subproblems.

How is it scored?

The engine computes the provably-optimal answer for the exact instance you played (dynamic programming, shortest-path, or exhaustive search — never a heuristic) and scores your attempt as a percentage of it. No login needed to see your score.