PracticeLevel 4: ItertoolsEx 100. Mini OA: interview panels
0/150 Solved(0%)
Level 4Exercise #100

Mini OA: interview panels

Choose 2 interviewers and assign distinct morning/evening slots to them. Return every (panel, slot_order) plan.

What you’ll practice

This Level 4 exercise focuses on itertools integration in the Itertools curriculum. Solve the challenge prompt above using clear, idiomatic Python and the relevant language or standard-library tools.

Relevant Python reference: Python Standard Library — Itertools.

Sample Test Cases

Example #1
Input:panel_plans(['A','B','C'])
Output:6 valid plans

Further Reading

Reference Solution

Reveal Reference Solution
def panel_plans(people: list[str]) -> list[tuple]:
from itertools import combinations, permutations, product
panels = combinations(people, 2)
slot_orders = list(permutations(('morning','evening')))
return list(product(panels, slot_orders))
Pro Tips & Keyboard Shortcuts
Color Theme
Ctrl + K then T

Open VS Code Color Theme Quick Pick to select from 20 dark and light themes.

Editor SettingsCtrl + K

Open practice settings drawer to toggle line numbers, indenting, font size & hints.

Search MenuCtrl + /

Expand sidebar menu, focus search bar, and highlight search text instantly.

Focus Code Editor
Esc or Ctrl + `

Instantly highlight and focus code editor from anywhere, restoring cursor right where you left off.

Normal ViewEsc

Collapse sidebar and close all popups or settings drawers for clean focus view.

solution.py· Python 3.11 WASM