Skip to content

Merge two sorted arrays without using extra space #289

Description

@kiruba-r11

💥 Proposal

Two sorted arrays would be given and those arrays should be merged without using extra space. For example:
Array - 1 = [0 , 2 , 4 , 6]
Array - 2 = [1 , 3 , 5 , 7 , 9]

Since, extra space should not be used, the result should be store in input array itself like,

Array - 1 = [0 , 1 , 2 , 3]
Array - 2 = [4 , 5 , 6 , 7 , 9]

Have you read the Contributing Guidelines on Pull Requests ?

Yes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions