TADM2E 4.4
From Algorithm Wiki
Algorithm:
<pre> Create 3 buckets, one each for red, blue and yellow. for each Pair P in the input
append P.number to the bucket P.color
Output the data from the red, blue and yellow buckets. </pre>
Algorithm:
<pre> Create 3 buckets, one each for red, blue and yellow. for each Pair P in the input
append P.number to the bucket P.color
Output the data from the red, blue and yellow buckets. </pre>