Given the head of a singly linked list and a value x, rearrange the list in place so all nodes with value less than x come first, then nodes equal to x, then nodes greater than x. Keep the original…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.