The Tag Analyst
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Given two lists of string tags a and b, return a dict with three sorted lists: 'both' (tags in both), 'only_a' (in a but not b), 'only_b' (in b but not a). All three lists are sorted alphabetically.
Summary
Two sets of labels, one analysis.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.