---
title: "Discussion on \"LeetCode #21: Merge Two Sorted Lists\" | Hashnode"
description: "Discussion on \"LeetCode #21: Merge Two Sorted Lists\". The easiest recursive solution with O(n+m) runtime"
url: "https://hashnode.com/posts/leetcode-21-merge-two-sorted-lists/64bd75a5e7e1e7c6ae7a9d22"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode #21: Merge Two Sorted Lists](https://nimraahmed.hashnode.dev/leetcode-21-merge-two-sorted-lists?utm_source=hashnode&utm_medium=feed)

The easiest recursive solution with O(n+m) runtime

Jul 23, 2023 · 4 min read · nimraahmed.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#linkedlists](https://hashnode.com/tag/linkedlists)

## Written by

[Nimra Ahmed](https://hashnode.com/@nimraahmed)

@nimraahmed · Pakistan

  
[View profile](https://hashnode.com/@nimraahmed)

Software engineer with a knack for writing

I'm a software engineer by profession &amp; a technical writer by passion. I've written blogs, tutorials, and guides for Memphis, Paessler PRTG, AI Superior, Massdriver, and more. Open for gigs (email: nimra1408@gmail.com) I love Node.js &amp; enjoy API documentation.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
