โ† Larsen & Toubro questions
CodingEasy to Medium

Sort array by k-elements

Filed under Larsen & Toubro

The question

Sort the first k elements of an array in ascending order and the remaining elements in descending order.

No write-up yet. Related questions below have one.

Related Larsen & Toubro questions

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