Re: Word Order Simple.

2016-03-13 Thread Peter Otten
Rodrick Brown wrote: > You are given nn words. Some words may repeat. For each word, output its > number of occurrences. The output order should correspond with the input > order of appearance of the word. See the sample input/output for > clarification. > > *Note:* Each input line ends with a *"

Word Order Simple.

2016-03-13 Thread Rodrick Brown
You are given nn words. Some words may repeat. For each word, output its number of occurrences. The output order should correspond with the input order of appearance of the word. See the sample input/output for clarification. *Note:* Each input line ends with a *"\n"* character. *Constraints:* 1≤