Skip to content

Segregate 0s and 1s in an array #394

@nik132-eng

Description

@nik132-eng

Enter your question -

You are given an array of 0s and 1s in random order. Segregate 0s on the left side and 1s on the right side of the array [Basically you have to sort the array]. Traverse array only once.

Enter link to the question(if question belongs to any online platform) -

https://www.geeksforgeeks.org/segregate-0s-and-1s-in-an-array-by-traversing-array-once/

Tags for the question(eg - Array, Basic, Stack, etc.) -

array

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions