1.

2.

( Iterate over array using while loop ).

3.

number of positive numbers

number of negative numbers

number of odd numbers

number of even numbers

number of 0s.

4.

5.

6.

7.

8.

9.

10.

2 | 3 | 15 | 15 | 3 | 2 |

11.

E.g.-

INPUT : [1,2,3,2,1,3,12,12,32]

OUTPUT : [1,2,3,12,32]

12.

INITIAL array :

58 | 24 | 13 | 15 | 63 | 9 | 8 | 81 | 1 | 78 |

After spliting :

58 | 24 | 13 | 15 | 63 |

9 | 8 | 81 | 1 | 78 |

13.

1.

Sample input: 4 8 6 3 2

Sample output: 4 6 2 6 3 2

2.

INPUT : 1 2 3 4 5

OUTPUT : 5 1 2 3 4

Recent Posts

7 Critical Tips to Learn Programming Faster

Beginning with ML 2.0: Multivariate Linear Regression

Beginning with Machine Learning: Linear Regression

Scrolling Progress Indicator