For each colour, find the maximum number of pipes water can flow through given colour capacities.
Unlock detailed company stats for this questionUpgrade
Given n pipes, each with a start and end coordinate and a set of allowed colours with capacities, where water flows from pipe1 to pipe2 only if pipe1.end == pipe2.start, find for each colour the maximum number of pipes water can flow through and the maximum total capacity for that count. The capacity along a route is the minimum capacity among its pipes for that colour.
Community answers
No answers contributed by the community yet.
Related questions
Find the maximum number of people who can go on a trip given each person's group size limits.Find the maximum number of riders that can fit in a car given their comfort ranges.Given a haunted house style setup, find the maximum number of parties that can go.Related courses

Course

Course
Course
