Solve the following problems:
-
Given an array of size n arrange the array in such a way that all even numbers comes before all odd numbers and the order should be maintained Example - 13 25 6 24 45 2 Output - 6 24 2 13 25 45
-
Given an array of size n print the array element and it's frequency. (Order not mandatory) Example - 2 4 2 2 3 3 3 5 Output: 2 - 3 3 - 3 4 - 1 5 - 1
- Fork the repository
- Create a new branch (with your name)
- Upload files in the new branch.
- Create a pull request.