The Long Way Around

An easy 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
easy
Seniority
L4

Interview Prompt

A batch job runs in a restricted runtime where the ordering built-ins are gone: no sorted(), no list.sort(), and no min() or max() to reach for. Given a list of integers nums, return them ordered smallest to largest.

Summary

Anyone can call the function. Order it by hand.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write and run your Python against test cases
  4. Answer the interviewer's follow-up questions, then get a hire or no-hire decision