5.3 Define the procedure split( Numbers, Positives, Negatives) which splits a list of numbers into two lists:
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 example: split([3, -1, 0, 5, -2], [3, 0, 5], [-1, -2]) Propose two versions: one with a cut and one without.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Artificial Intelligence In Power System Optimization
ISBN: 9781578088058
1st Edition
Authors: Weerakorn Ongsakul, Vo Ngoc Dieu
Question Posted: