Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.