Skip to content

[OTHER]: why element is array in Max Heap? #1341

Closed

Description

@GongSunJie-Plus

What would you like to share?

maxHeap.insert([4])

just use number

maxHeap.insert(4)

Additional information

No response

Activity

  1. appgurueu commented on Jul 25, 2023

    @appgurueu
    Collaborator

    The example seems to be wrong; we should just remove it. Moreover, the max heap seems redundant with our min heap. Feel free to deduplicate the code.

  2. added
    code qualityCode quality improvement
    and removed
    awaiting triageAwaiting triage from a maintainer
    on Jul 25, 2023
  3. Bajpai25 commented on Oct 4, 2023

    @Bajpai25

    @appgurueu Could you please assign me this issue .

  4. appgurueu commented on Oct 4, 2023

    @appgurueu
    Collaborator

    @appgurueu Could you please assign me this issue .

    I think @ROHAN13498 is already working on deduplicating the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code qualityCode quality improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions