Skip to content

Commit bbfda31

Browse files
Update lessons/practise-question.md
Co-authored-by: Utkarsh Mishra <76392681+Utkarsh1504@users.noreply.github.com>
1 parent 1c197fd commit bbfda31

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lessons/practise-question.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ Output
4747
3542200
4848
```
4949
## Explanation
50-
Initialize a variable count with a value equal to zero.<br>
51-
Make a function named pushZeroToEnd and input an array.<br>
52-
Traverse through the array and check each element whether it is equal to zero or not.<br>
53-
If the element is not equal to zero, put the element at the countth position of the array.<br>
54-
Increase the value of count by 1.<br>
55-
At last, fill the remaining positions of the array with 0.<br>
50+
- Initialize a variable count with a value equal to zero.<br>
51+
- Make a function named pushZeroToEnd and input an array.<br>
52+
- Traverse through the array and check each element whether it is equal to zero or not.<br>
53+
- If the element is not equal to zero, put the element at the countth position of the array.<br>
54+
- Increase the value of count by 1.<br>
55+
- At last, fill the remaining positions of the array with 0.<br>
5656

5757
## Time Complexity
5858
Since we will be traversing the whole array twice therefore the time complexity of algorithm would be:

0 commit comments

Comments
 (0)