OA [CodeSignal] Balanced Numbers in Permutation
Uber interview questions · Hard · OA round · 6 tests
For every k, decide whether the values 1..k occupy one contiguous block inside the permutation.
The full question, tests and reference solution are available with a plan that includes Uber.
Run your code with Ctrl+Enter to see results.