Loading...
The Placement Fixer
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
A data pipeline validation tool checks that integer sequences are stored in their correct positions for deduplication purposes. Given a list containing integers in the range 1 to n with possible duplicates, write a function that uses cyclic sort to place each number at index (value - 1) and returns the sorted list.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.