← Questions

Manager and peer relationships with is_manager queries

0
GoogleCodingLast asked Feb 2026

Implement three functions:

  • manager(a, b): a is the manager of b.
  • peer(a, b): a and b have the same manager.
  • is_manager(a, b): return whether a is a manager of b.

Decide how to answer when peers are declared before their manager is known.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding