← Microsoft questions
CodingReported in a candidate post, Aug 2012

Create linked list with elements of first list not in second

Filed under Microsoft

Given two sorted linked lists, create a third list containing only those elements of the first list that are not present in the second list, in O(n) time.

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 Microsoft questions

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