PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Two Sigma

Merge two sorted linked lists

Last updated: Apr 19, 2026

Quick Overview

This question evaluates proficiency with linked list data structures, pointer manipulation, in-place merging concepts, and algorithmic efficiency within the Coding & Algorithms domain.

  • hard
  • Two Sigma
  • Coding & Algorithms
  • Data Scientist

Merge two sorted linked lists

Company: Two Sigma

Role: Data Scientist

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Given two singly linked lists sorted in ascending order, merge them into one singly linked list that is also sorted in ascending order. Requirements: - Each input list may be empty. - Node values are integers. - Reuse the existing nodes if possible. - Return the head of the merged list. - Target time complexity: O(n + m), where n and m are the lengths of the two lists.

Quick Answer: This question evaluates proficiency with linked list data structures, pointer manipulation, in-place merging concepts, and algorithmic efficiency within the Coding & Algorithms domain.

Related Interview Questions

  • Implement Price-Time Order Matching - Two Sigma (medium)
  • Compute Piecewise Linear Interpolation - Two Sigma (medium)
  • Implement an In-Memory Database - Two Sigma (hard)
  • Merge Two Sorted Lists - Two Sigma (hard)
  • Evaluate Piecewise Linear Function - Two Sigma (medium)
|Home/Coding & Algorithms/Two Sigma

Merge two sorted linked lists

Two Sigma logo
Two Sigma
Apr 2, 2026, 12:00 AM
hardData ScientistTechnical ScreenCoding & Algorithms
3
0
Practice Read
Loading...

Given two singly linked lists sorted in ascending order, merge them into one singly linked list that is also sorted in ascending order.

Requirements:

  • Each input list may be empty.
  • Node values are integers.
  • Reuse the existing nodes if possible.
  • Return the head of the merged list.
  • Target time complexity: O(n + m), where n and m are the lengths of the two lists.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Two Sigma•More Data Scientist•Two Sigma Data Scientist•Two Sigma Coding & Algorithms•Data Scientist Coding & Algorithms
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.