Leetcode 2161. Partition Array According to Given Pivot
Partition the array into three contiguous groups — elements < pivot, elements == pivot, and elements > pivot — while preserving the original relative order of elements within the < and > groups. Return the rearranged array (pivot value is guaranteed to appear in nums).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.