Tower Research CapitalCodingMembers
Sorting an Array With Bounded Displacement
Members only
A coding question about sorting data that is already nearly in order. The interesting part is exploiting the extra guarantee on the input to beat a generic sort, and being able to justify why the result is optimal.
SWE
medium
algorithm
array
heap
sorting
sliding-window
complexity-analysis
python
Frequency
Single report
Last asked
—
Stage
phone-screen
Members get
- Full problem statement
- 3 progressive hints
- Step-by-step approach
- Full solution with code
- 3 common pitfalls
- 5 talking points
- 5 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
