---
title: "Discussion on \"Solving Find Median from Data Stream\" | Hashnode"
description: "Discussion on \"Solving Find Median from Data Stream\". To see the question, click here.\nNaive Approach\nThe idea is to store the elements in a list. At each stage of adding an element, we will sort the list because the elements may not be added to the list in a sorted fashion.\n// TC: O(nlogn) for addNum a..."
url: "https://hashnode.com/posts/solving-find-median-from-data-stream/668fd0796d466b1a2fd58982"
---

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

Discussion

# [Solving Find Median from Data Stream](https://vineethchivukula.hashnode.dev/solving-find-median-from-data-stream?utm_source=hashnode&utm_medium=feed)

To see the question, click here. Naive Approach The idea is to store the elements in a list. At each stage of adding an element, we will sort the list because the elements may not be added to the list in a sorted fashion. // TC: O(nlogn) for addNum a...

Jul 11, 2024 · 5 min read · vineethchivukula.hashnode.dev  
Read the article

-   [#median](https://hashnode.com/tag/median)
-   [#heaps](https://hashnode.com/tag/heaps)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Vineeth Chivukula](https://hashnode.com/@vineethchivukula)

@vineethchivukula · Andhra Pradesh, India

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

Developer && Video editor

There's this guy who's mad about editing and programming. It's his jam, you know?

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
