Let assume we have a list of numbers contains even and odd numbers , so you need to build an algorithm to make the odd number in the beginning of the list and the even number at the end of the list. For example:
List=[5,6,8,3,1,7,10] so after you build the algorithm the result will be as below: List=[5,3,1,7,6,8,10]
To answer question 1, you need to do the following:
1. Write an algorithm to do the above task.
2. Implement the algorithm using OUBuild script following the algorithm.
3. Provide 2 screenshots showing output using two different Lists.
4. What is the most efficient algorithm to sort the List in question 1.
Comments
Leave a comment