Windy has N
balls of distinct weights from 1 unit to N
units. Now he tries to label them with 1 to N
in such a way that:
- No two balls share the same label.
- The labeling satisfies several constrains like "The ball labeled with a is lighter than the one labeled with b".
Can you help windy to find a solution?