codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 167 forks source link

Write a Python program to move all zeroes to end of array #5148

Closed harshraj8843 closed 10 months ago

harshraj8843 commented 10 months ago

Description

Write a Python program to move all zeroes to end of array

Input  : arr[] = {1, 2, 0, 4, 3, 0, 5, 0};
Output : arr[] = {1, 2, 4, 3, 5, 0, 0, 0};

Input  : arr[] = {1, 2, 0, 0, 0, 3, 6};
Output : arr[] = {1, 2, 3, 6, 0, 0, 0};
How to contribute - Comment `!assign` to assign this issue to yourself - Fork this repository - Create a new branch - Save the solution in `program/program/move-all-zeroes-to-end-of-array/move_all_zeroes_to_end_of_array.py` - Commit the changes - Create a pull request
codinasion-bot[bot] commented 10 months ago

👋🏻 Hey @harshraj8843

💖 Thanks for opening this issue 💖

A team member should be by to give feedback soon.

Amedi-Imbira commented 10 months ago

!Assign

AlessioBugetti commented 10 months ago

!assign

av-techspot commented 10 months ago

!assign

codinasion-bot[bot] commented 10 months ago

Hey @av-techspot, this issue is already assigned to @AlessioBugetti! cc/ @codinasion/codinasion

av-techspot commented 10 months ago

Sorry, I'm trying to collaborate in Open Source for the first time :)