---
title: "Discussion on \"4. Median of Two Sorted Arrays\" | Hashnode"
description: "Discussion on \"4. Median of Two Sorted Arrays\". Problem Link\nclass Solution:\n    def findMedianSortedArrays(self, A: List[int], B: List[int]) -> float:\n        if len(A) > len(B):\n            return self.findMedianSortedArrays(B, A)\n        La, Lb = len(A), len(B)\n        total = La + Lb\n        h..."
url: "https://hashnode.com/posts/4-median-of-two-sorted-arrays/62a2a6e323f5f5accf27454d"
---

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

Discussion

# [4\. Median of Two Sorted Arrays](https://superbcoder.hashnode.dev/4-median-of-two-sorted-arrays?utm_source=hashnode&utm_medium=feed)

Problem Link class Solution: def findMedianSortedArrays(self, A: List\[int\], B: List\[int\]) -> float: if len(A) > len(B): return self.findMedianSortedArrays(B, A) La, Lb = len(A), len(B) total = La + Lb h...

Jun 10, 2022 · 1 min read · superbcoder.hashnode.dev  
Read the article

## Written by

[Jim Chung](https://hashnode.com/@JimHYC)

@JimHYC

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

Leetcode

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
