TADM2E 4.4

From Algorithm Wiki
Revision as of 18:13, 11 September 2014 by Algowikiadmin (talk | contribs) (Recovering wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>