Build a rooted tree on n employees where each node's parent is one of its accepted bosses, then assign minimum positive salaries with every boss exceeding the sum of children.
Hard8TreeDynamic programmingGreedyImplementationNo attempts yetTime limit1.5sMemory limit256 MB