For sake of the golf problem, your example would return all 3 cases if m,n is 2,3. Extra credit for not including and/or removing phrases of x words that are part of phrases with y (y > x) words in the returned list.
in reply to Re (tilly) 1: Golf (Inspired): Repeated Phrases
in thread Golf (Inspired): Repeated Phrases
And the list must be of non-null words, so no trivial solutions :-)
Dr. Michael K. Neylon - firstname.lastname@example.org
"You've left the lens cap of your mind on again, Pinky" - The Brain