codinasion-archive / codinasion-monorepo

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

Write a TypeScript program to move all zeroes to end of array #5154

Closed harshraj8843 closed 8 months ago

harshraj8843 commented 10 months ago

Description

Write a TypeScript 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/MoveAllZeroesToEndOfArray.ts` - 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.

Parvezkhan0 commented 10 months ago

!assign

TahsinAhmedz commented 9 months ago

!assign

codinasion-bot[bot] commented 9 months ago

Hey @TahsinAhmedz, this issue is already assigned to @Parvezkhan0! cc/ @codinasion/codinasion