โ† Josh Technology questions

Rearrange Array around Element K

Filed under Josh Technology

The question

Given an array of size N and an element K, rearrange elements such that values less than K come first, followed by values greater than K, and elements equal to K are at the end.

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

Related Josh Technology questions

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