← OYO questions

Max chunks to sort array

Filed under OYO

You are given an integer array arr of size n that is a permutation of the integers in the range [0, n - 1]. We split some chunk of the array into individual pieces, and after sorting each piece…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.