Skip to content

[BUG] wrong output given by sorting/bead_sort.cpp #868

@ayaankhan98

Description

@ayaankhan98

program sorting/bead_sort.cpp is producing wrong output

Description

change the input array from the main() to modify the input
suppose this array

int a[] = {-10, 78, -1, -6, 7, 4, 94, 5, 99, 0};

after changing this now run the program you will get this output

0 0 0 0 4 5 7 78 94 99

Expected Behavior

Expected the correct sorted array

Actual Behavior

getting the worngly sorted array

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions