Question: Implement the odd-even sort algorithm in the F# functional programming language. The program will implement two functions swap and oddEvenSort. The sort function is called
Implement the odd-even sort algorithm in the F# functional programming language. The program will implement two functions swap and oddEvenSort. The sort function is called from the main function and swap is called from sort.
Try and avoid using imperative language structures as much as possible.
Use pattern matching, lambdas and other functional language constructs instead.
Display the sorted array.
Here's the Data:
14 23 67 59 44 58 33 37 62 85 90 60 81 82 62 34 81 63 84 12 76 62 3 25 57 30 82 3 57 41 13 83 28 31 43 26 7 36 47 61 53 85 12 80 27 65 76 39 49 21 50 9 77 24 63 38 18 89 50 42 9 6 51 18
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
