Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Andrew Whatmore
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Andrew Whatmore
    Full Stack JavaScript Techdegree Student 13,324 Points

    Checking for an empty list in the split function

    Posted November 7, 2026 10:52pm by Andrew Whatmore
    .a{fill-rule:evenodd;}techdegree
    Andrew Whatmore
    Full Stack JavaScript Techdegree Student 13,324 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • The Divide Step

    0 Answers

  • Eva Feng
    Eva Feng
    4,831 Points

    split function on the linked list

    Posted January 29, 2026 6:38am by Eva Feng
    Eva Feng
    4,831 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • Implementing Merge Sort on Linked Lists

    2 Answers

  • Eva Feng
    Eva Feng
    4,831 Points

    merge_sort_linked_list

    Posted January 29, 2026 6:25am by Eva Feng
    Eva Feng
    4,831 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • Evaluating the Runtime

    0 Answers

  • Eva Feng
    Eva Feng
    4,831 Points

    Import LinkedList

    Posted January 29, 2026 2:13am by Eva Feng
    Eva Feng
    4,831 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • The Divide Step

    1 Answer

  • Angelus Miculek
    Angelus Miculek
    6,979 Points

    should be edited

    Posted October 4, 2024 2:42pm by Angelus Miculek
    Angelus Miculek
    6,979 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • The Divide Step

    1 Answer

  • JASON LEE
    JASON LEE
    17,352 Points

    @11:50 DRY principle in replacing merged head to next node head ?

    Posted March 9, 2023 4:22am by JASON LEE
    JASON LEE
    17,352 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • The Conquer Step

    1 Answer

  • hunter bougis
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    hunter bougis
    Full Stack JavaScript Techdegree Graduate 18,367 Points

    Heya, trying to get the JS version of this. The email note at the top is no longer working

    Posted January 9, 2020 7:05pm by hunter bougis
    .a{fill-rule:evenodd;}techdegree seal-36
    hunter bougis
    Full Stack JavaScript Techdegree Graduate 18,367 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • Implementing Merge Sort on Linked Lists

    1 Answer

  • Aaron Uusitalo
    Aaron Uusitalo
    4,405 Points

    Is the reason that we don't have to explicitly import the Node class because it is referenced in the LinkedList class?

    Posted January 14, 2019 5:59pm by Aaron Uusitalo
    Aaron Uusitalo
    4,405 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • The Merge Function

    2 Answers

  • okilydokily
    okilydokily
    12,105 Points

    Would we ever actually call split on a linked list with one node? I would think that would result in merge sort.

    Posted December 14, 2018 10:43pm by okilydokily
    okilydokily
    12,105 Points
    • Computer Science
    • Introduction to Data Structures
    • Merge Sort and Linked Lists
    • The Divide Step

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord