Skip to content

using heap structure to optimizer the performance #3

@reply2future

Description

@reply2future

goal

It used array to store the cpu usage of process, and sorting then find the median.

Probably it can use heap to store the data and find median easier with good performance

references

  1. https://leetcode.com/problems/find-median-from-data-stream/discuss/329657/JavaScript-max-heap-%2B-min-heap

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions