Where They Part
A medium Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Interview Prompt
Our lifecycle rules have piled up near-duplicate object-storage key globs, where `?` stands for any single character, and we want to collapse a batch of them under one shared leading stretch. Return the longest leading stretch all the patterns can agree on, spelled out with the real character wherever any pattern pins one down.
Summary
They all start the same way. How far?
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your Python against test cases
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision