Question: 5.3 Define the procedure split( Numbers, Positives, Negatives) which splits a list of numbers into two lists: positive ones (including zero) and negative ones. For
5.3 Define the procedure split( Numbers, Positives, Negatives) which splits a list of numbers into two lists: positive ones (including zero) and negative ones. For example: split([3, -1, 0, 5, -2], [3, 0, 5], [-1, -2]) Propose two versions: one with a cut and one without.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
