← Paytm questions

Sort a linked list sorted by absolute values

Filed under Paytm

Given a linked list that is sorted by the absolute value of its node values, sort it according to actual numeric values in O(n) time and O(1) auxiliary space.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Paytm questions

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