Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Zeros #10

Open
emrerenJs opened this issue Jul 24, 2022 · 1 comment
Open

Sort Zeros #10

emrerenJs opened this issue Jul 24, 2022 · 1 comment
Assignees

Comments

@emrerenJs
Copy link
Collaborator

emrerenJs commented Jul 24, 2022

  • Define an integer array with 10 elements.
  • Read 10 integer from console input.
  • Sort zeros to the prefix of array.

For example :
Input : {1, 5, 3, 0, 2, 0 ,10, 0, 9, 8}
Output : {0, 0, 0, 1, 5, 3, 2, 10, 9, 8 }

Difficulty: 10/5

@HusnaSari
Copy link
Owner

HusnaSari commented Aug 7, 2022

Eta: 45 minutes

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

When branches are created from issues, their pull requests are automatically linked.

2 participants