Sollicitatievraag bij Crowe LLP

Rotating an array in the most efficient way

Antwoord op sollicitatievraag

Anoniem

25 apr 2024

For minimal effort, reverse the array, then reverse the first k elements, followed by the rest.