← Microsoft questions

Linked List operations: Alternate nodes, Delete node, Middle node

Filed under Microsoft

Implement three fundamental singly linked list operations: print_alternate(head) returning values of nodes at even indices (0, 2, ...), delete_node(node) deleting a non-tail node in O(1) given only…

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.